Skip to content

Commit

Permalink
twitch: allow parent to be passed as _parent param too
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Nov 14, 2024
1 parent bce5587 commit a9607f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/domains/twitch.tv/twitch-live-fallback.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {

re: [
/^https?:\/\/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)(?:\?parent=.*)?$/i,
/^https?:\/\/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)(?:\?_?parent=.*)?$/i,
/^https?:\/\/(?:www\.|go\.)?twitch\.tv\/(?:[a-zA-Z0-9_]+\/)?videos?\/(\d+)/i,
],

Expand Down
2 changes: 1 addition & 1 deletion plugins/domains/twitch.tv/twitch.tv.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
re: [
/^https?:\/\/(?:www\.|go\.)?twitch\.tv\/[a-zA-Z0-9_]+\/v\/(\d+)/i,
/^https?:\/\/(?:www\.|go\.)?twitch\.tv\/(?:[a-zA-Z0-9_]+\/)?videos?\/(\d+)/i,
/^https?:\/\/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)(?:\?parent=.*)?$/i,
/^https?:\/\/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)(?:\?_?parent=.*)?$/i,
/^https?:\/\/clips.twitch\.tv\/([^\?\/]+)(?:\?[^\?]+)?$/i,
/^https?:\/\/www\.twitch\.tv\/\w+\/clip\/([^\?\/]+)/i
],
Expand Down

0 comments on commit a9607f2

Please sign in to comment.