Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YouTube] Likes/Dislikes Missing on Age-Restricted Videos with RYD Plugin + AGB + Cookies #1

Closed
7 of 9 tasks
git261 opened this issue Feb 18, 2024 · 0 comments
Closed
7 of 9 tasks

Comments

@git261
Copy link

git261 commented Feb 18, 2024

Checklist

Region

Canada

Problem

Likes and Dislikes are not displaying correctly for age-restricted videos when utilizing yt-dlp's RYD plugin. Despite providing the necessary authentication data, the plugin fails to retrieve accurate Like and Dislike counts for such videos. This issue contrasts with the functionality of the RYD Chrome Extension, where Like and Dislike counts are displayed accurately.

The yt-dlp RYD Plugin, even when used with Cookies and AGB, fails to retrieve precise Like and Dislike counts for age-restricted videos. Below is an example of the JSON data showcasing the inaccuracies:

Example JSON Data:

{"id": "RBPk185Hd0A", "like_count": 0, "dislike_count": 0, "average_rating": 0}
{"id": "CUO8secmc0g", "like_count": 0, "dislike_count": 283, "average_rating": 1}
{"id": "dIZ-e4WwJ5w", "like_count": 0, "dislike_count": 179, "average_rating": 1}
{"id": "PZZfLROBw-0", "like_count": 0, "dislike_count": 0, "average_rating": 0}
{"id": "FvzRERrkiK4", "like_count": 0, "dislike_count": 5, "average_rating": 1}
{"id": "BJDH36BQ-qo", "like_count": 0, "dislike_count": 0, "average_rating": 0}
{"id": "4rBZOqnxZ5c", "like_count": 0, "dislike_count": 0, "average_rating": 0}

with RYD Chrome Extension:

RBPk185Hd0A, 9035, 1643
CUO8secmc0g, 32080, 283
dIZ-e4WwJ5w, 43654, 179
PZZfLROBw-0, 1152, 85
FvzRERrkiK4, 273, 5
BJDH36BQ-qo, 46447, 3780
4rBZOqnxZ5c, 56192, 5512

I've also opened an Issue at the RYD repo related to this wondering if they can help, please see: : RYD Issue #1035.

Proposed solution:

First off, I am not a coder or super tech-savvy to figure this out, However, my guess is the problem is requiring some Auth in order to fetch the Likes/Dislikes on AR videos, hence why I tried using AGB + cookies. Implementing some code methods of the RYD chrome extension may be necessary.

Any help in coming up with a solution is appreciated!

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', 'https://www.youtube.com/watch?v=BJDH36BQ-qo', '--skip-download', '--cookies-from-browser', 'chrome', '--use-postprocessor', 'ReturnYoutubeDislike:when=pre_process', '--print-to-file', '%(.{id,like_count,dislike_count})j', './Test_dislikes_cookies_age_gate.json']
Extracting cookies from chrome
[debug] Extracting cookies from: "C:\Users\Owner\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies"
[debug] Found local state file at "C:\Users\Owner\AppData\Local\Google\Chrome\User Data\Local State"
Extracted 3187 cookies from chrome
[debug] cookie version breakdown: {'v10': 3422, 'other': 0, 'unencrypted': 0}
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp [f10589e34] (pip)
[debug] Python 3.12.0 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 3.0.11 19 Sep 2023)
[debug] exe versions: ffmpeg 2023-12-04-git-8c117b75af-full_build-www.gyan.dev (setts), ffprobe 2023-12-04-git-8c117b75af-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.19.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, requests-2.31.0, sqlite3-3.42.0, urllib3-2.0.3, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Extractor Plugins: AGB (YoutubeIE)
[debug] Post-Processor Plugins: BeforeJsonWriteMtimePP, FixupCreationDatePP, FixupGtimePP, FixupMtimePP, JsonWriteMtimePP, ReturnYoutubeDislikePP, UploadDateCtime1PP, UploadDateCtime2PP, UploadDateCtime3PP, YoutubeApiChannelPP, YoutubeApiPlaylistPP, YoutubeApiVideoPP
[debug] Plugin directories: ['C:\\Users\\Owner\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\yt_dlp_plugins']
[debug] Loaded 1798 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: [email protected] from yt-dlp/yt-dlp
yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp)
[youtube+AGB] Extracting URL: https://www.youtube.com/watch?v=BJDH36BQ-qo
[youtube+AGB] BJDH36BQ-qo: Downloading webpage
[debug] [youtube+AGB] Extracted SAPISID cookie
[youtube+AGB] BJDH36BQ-qo: Downloading ios player API JSON
[youtube+AGB] BJDH36BQ-qo: Downloading android player API JSON
[youtube+AGB] BJDH36BQ-qo: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] ReturnYoutubeDislike query: https://returnyoutubedislikeapi.com/votes?videoId=BJDH36BQ-qo
[debug] Default format spec: bestvideo*+bestaudio/best
[info] BJDH36BQ-qo: Downloading 1 format(s): 313+251
[info] Writing '%(.{id,like_count,dislike_count})j' to: Test_dislikes_cookies_age_gate.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant