-
-
Notifications
You must be signed in to change notification settings - Fork 543
[YouTube] Support Shorts UI in playlists #1093
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
Merged
Stypox
merged 5 commits into
TeamNewPipe:dev
from
AudricV:yt_support-shorts-ui-playlists
Aug 12, 2023
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e6f371f
[YouTube] Support Shorts UI in playlists
AudricV e2f4ee4
[YouTube] Add a playlist with Shorts UI test
AudricV 162c261
[YouTube] Add mocks of the playlist with Shorts UI test
AudricV 8237052
Fix wrong assertion in assertNotEmpty
AudricV 698c710
Do not require knowledge of uploader in default StreamInfoItems tests
AudricV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
...habi/newpipe/extractor/services/youtube/extractor/playlist/shortsUI/generated_mock_0.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| { | ||
| "request": { | ||
| "httpMethod": "GET", | ||
| "url": "https://www.youtube.com/sw.js", | ||
| "headers": { | ||
| "Referer": [ | ||
| "https://www.youtube.com" | ||
| ], | ||
| "Origin": [ | ||
| "https://www.youtube.com" | ||
| ], | ||
| "Accept-Language": [ | ||
| "en-GB, en;q\u003d0.9" | ||
| ] | ||
| }, | ||
| "localization": { | ||
| "languageCode": "en", | ||
| "countryCode": "GB" | ||
| } | ||
| }, | ||
| "response": { | ||
| "responseCode": 200, | ||
| "responseMessage": "", | ||
| "responseHeaders": { | ||
| "access-control-allow-credentials": [ | ||
| "true" | ||
| ], | ||
| "access-control-allow-origin": [ | ||
| "https://www.youtube.com" | ||
| ], | ||
| "alt-svc": [ | ||
| "h3\u003d\":443\"; ma\u003d2592000,h3-29\u003d\":443\"; ma\u003d2592000" | ||
| ], | ||
| "cache-control": [ | ||
| "private, max-age\u003d0" | ||
| ], | ||
| "content-type": [ | ||
| "text/javascript; charset\u003dutf-8" | ||
| ], | ||
| "cross-origin-opener-policy-report-only": [ | ||
| "same-origin; report-to\u003d\"youtube_main\"" | ||
| ], | ||
| "date": [ | ||
| "Mon, 07 Aug 2023 17:06:40 GMT" | ||
| ], | ||
| "expires": [ | ||
| "Mon, 07 Aug 2023 17:06:40 GMT" | ||
| ], | ||
| "origin-trial": [ | ||
| "AvC9UlR6RDk2crliDsFl66RWLnTbHrDbp+DiY6AYz/PNQ4G4tdUTjrHYr2sghbkhGQAVxb7jaPTHpEVBz0uzQwkAAAB4eyJvcmlnaW4iOiJodHRwczovL3lvdXR1YmUuY29tOjQ0MyIsImZlYXR1cmUiOiJXZWJWaWV3WFJlcXVlc3RlZFdpdGhEZXByZWNhdGlvbiIsImV4cGlyeSI6MTcxOTUzMjc5OSwiaXNTdWJkb21haW4iOnRydWV9" | ||
| ], | ||
| "p3p": [ | ||
| "CP\u003d\"This is not a P3P policy! See http://support.google.com/accounts/answer/151657?hl\u003den-GB for more info.\"" | ||
| ], | ||
| "permissions-policy": [ | ||
| "ch-ua-arch\u003d*, ch-ua-bitness\u003d*, ch-ua-full-version\u003d*, ch-ua-full-version-list\u003d*, ch-ua-model\u003d*, ch-ua-wow64\u003d*, ch-ua-form-factor\u003d*, ch-ua-platform\u003d*, ch-ua-platform-version\u003d*" | ||
| ], | ||
| "report-to": [ | ||
| "{\"group\":\"youtube_main\",\"max_age\":2592000,\"endpoints\":[{\"url\":\"https://csp.withgoogle.com/csp/report-to/youtube_main\"}]}" | ||
| ], | ||
| "server": [ | ||
| "ESF" | ||
| ], | ||
| "set-cookie": [ | ||
| "YSC\u003d9y_BcrNyhW0; Domain\u003d.youtube.com; Path\u003d/; Secure; HttpOnly; SameSite\u003dnone", | ||
| "VISITOR_INFO1_LIVE\u003d; Domain\u003d.youtube.com; Expires\u003dTue, 10-Nov-2020 17:06:40 GMT; Path\u003d/; Secure; HttpOnly; SameSite\u003dnone", | ||
| "CONSENT\u003dPENDING+034; expires\u003dWed, 06-Aug-2025 17:06:40 GMT; path\u003d/; domain\u003d.youtube.com; Secure" | ||
| ], | ||
| "strict-transport-security": [ | ||
| "max-age\u003d31536000" | ||
| ], | ||
| "x-content-type-options": [ | ||
| "nosniff" | ||
| ], | ||
| "x-frame-options": [ | ||
| "SAMEORIGIN" | ||
| ], | ||
| "x-xss-protection": [ | ||
| "0" | ||
| ] | ||
| }, | ||
| "responseBody": "\n self.addEventListener(\u0027install\u0027, event \u003d\u003e {\n event.waitUntil(self.skipWaiting());\n });\n self.addEventListener(\u0027activate\u0027, event \u003d\u003e {\n event.waitUntil(\n self.clients.claim().then(() \u003d\u003e self.registration.unregister()));\n });\n ", | ||
| "latestUrl": "https://www.youtube.com/sw.js" | ||
| } | ||
| } |
79 changes: 79 additions & 0 deletions
79
...habi/newpipe/extractor/services/youtube/extractor/playlist/shortsUI/generated_mock_1.json
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.