Skip to content

Commit

Permalink
fix missed field on reddit (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed Aug 7, 2024
1 parent 944eb98 commit a4cc7fb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
10 changes: 5 additions & 5 deletions dist/vot-min.user.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vot.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2410,9 +2410,9 @@ const sitesPoketube = [
{
host: VideoService.reddit,
url: "stub",
match: /^(www.|new.|old.)?reddit.com$/,
match: /^old.reddit.com$/,
selector: ".reddit-video-player-root",
needExtraData: true,
},
{
host: VideoService.kick,
Expand Down
15 changes: 15 additions & 0 deletions patches/vot.js+1.0.2+015+fix-missed-needdata-on-reddit.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/node_modules/vot.js/dist/config/sites.js b/node_modules/vot.js/dist/config/sites.js
index 143eb41..8c7b35d 100644
--- a/node_modules/vot.js/dist/config/sites.js
+++ b/node_modules/vot.js/dist/config/sites.js
@@ -309,9 +309,9 @@ export default [
{
host: VideoService.reddit,
url: "stub",
- match: /^(www.|new.|old.)?reddit.com$/,
match: /^old.reddit.com$/,
selector: ".reddit-video-player-root",
+ needExtraData: true,
},
{
host: VideoService.kick,

0 comments on commit a4cc7fb

Please sign in to comment.