Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e52f007

Browse files
bastimeyerback-to
authored andcommitted
plugins.twitch: fix clips URL regex
1 parent 13d984d commit e52f007

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/streamlink/plugins/twitch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ class Twitch(Plugin):
513513
(?:
514514
/video/(?P<video_id>\d+)
515515
|
516-
/clip/(?P<clip_name>[\w]+)
516+
/clip/(?P<clip_name>[\w-]+)
517517
)?
518518
)
519519
""", re.VERBOSE)

tests/plugins/test_twitch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class TestPluginCanHandleUrlTwitch(PluginCanHandleUrl):
1818
'https://www.twitch.tv/twitch',
1919
'https://www.twitch.tv/videos/150942279',
2020
'https://clips.twitch.tv/ObservantBenevolentCarabeefPhilosoraptor',
21+
'https://www.twitch.tv/weplaydota/clip/FurryIntelligentDonutAMPEnergyCherry-akPRxv7Y3w58WmFq'
2122
'https://www.twitch.tv/twitch/video/292713971',
2223
'https://www.twitch.tv/twitch/v/292713971',
2324
]

0 commit comments

Comments
 (0)