Open johntdyer opened 1 year ago
No, I've never had to update mine. I grabbed the cookies file from my browser which I use daily, and I don't clear history very often, so I think that's what keeps it alive?
Super strange, every time I get a cookie it works for a while and then it expires a few hours later. I did it last night and this morning its already returning logged out
[{'messageRenderer': {'text': {'runs': [{'text': 'Keep track of what you watch'}]}, 'icon': {'iconType': 'WATCH_HISTORY'}, 'trackingParams': 'CBMQljsYACITCLT_mJDHp4EDFeO-0QQdqHkJAA==', 'button': {'buttonRenderer': {'style': 'STYLE_SUGGESTIVE', 'size': 'SIZE_DEFAULT', 'isDisabled': False, 'text': {'runs': [{'text': 'Sign in'}]}, 'icon': {'iconType': 'AVATAR_LOGGED_OUT'}, 'navigationEndpoint': {'clickTrackingParams': 'CBQQ8YgEIhMItP-YkMengQMV477RBB2oeQkA', 'commandMetadata': {'webCommandMetadata': {'url': 'https://accounts.google.com/ServiceLogin?service=youtube&uilel=3&passive=true&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26app%3Ddesktop%26hl%3Den%26next%3Dhttps%253A%252F%252Fwww.youtube.com%252Ffeed%252Fhistory&hl=en', 'webPageType': 'WEB_PAGE_TYPE_UNKNOWN', 'rootVe': 83769}}, 'signInEndpoint': {'hack': True}}, 'trackingParams': 'CBQQ8YgEIhMItP-YkMengQMV477RBB2oeQkA'}}, 'subtext': {'messageSubtextRenderer': {'text': {'runs': [{'text': "Watch history isn't viewable when signed out."}, {'text': ' '}, {'text': 'Learn more', 'navigationEndpoint': {'clickTrackingParams': 'CBMQljsYACITCLT_mJDHp4EDFeO-0QQdqHkJAA==', 'commandMetadata': {'webCommandMetadata': {'url': 'https://support.google.com/youtube/answer/95725?hl=en', 'webPageType': 'WEB_PAGE_TYPE_UNKNOWN', 'rootVe': 83769}}, 'urlEndpoint': {'url': 'https://support.google.com/youtube/answer/95725?hl=en'}}}]}}}, 'style': {'value': 'RENDER_STYLE_EMPTY_STATE'}}}]
However the browser I used to get the cookie still has the same session....
so still playing w/ this and the cookies that are seemingly failing for the flask app work just fine in youtube-dl
❯ for h in `ls *`; do
youtube-dl --cookies $h "https://www.youtube.com/watch?v=hIk79WmVg4o" --simulate -v
done
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookies', 'newtab_cookies2.txt', 'https://www.youtube.com/watch?v=hIk79WmVg4o', '--simulate', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Single file build
[debug] Python 3.11.5 (CPython arm64 64bit) - macOS-14.0-arm64-arm-64bit - OpenSSL 3.1.2 1 Aug 2023
[debug] exe versions: ffmpeg 6.0, ffprobe 6.0, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] hIk79WmVg4o: Downloading webpage
[debug] [youtube] Decrypted nsig 07_p9D5wp-Y-jis => 5-uxr1NF7s4tBQ
[debug] [youtube] Decrypted nsig F7cgj0MyBmHB2cS => okx1dFxVdbOX4Q
[debug] Default format spec: bestvideo+bestaudio/best
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookies', 'www.youtube.com_cookies.txt', 'https://www.youtube.com/watch?v=hIk79WmVg4o', '--simulate', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Single file build
[debug] Python 3.11.5 (CPython arm64 64bit) - macOS-14.0-arm64-arm-64bit - OpenSSL 3.1.2 1 Aug 2023
[debug] exe versions: ffmpeg 6.0, ffprobe 6.0, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] hIk79WmVg4o: Downloading webpage
[debug] [youtube] Decrypted nsig qriUXtX8EXGGLx7 => n2G4OFfuD4pssA
[debug] [youtube] Decrypted nsig OL1vCjIx1Et51aN => OuZNHc3qARY-Hg
[debug] Default format spec: bestvideo+bestaudio/best
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookies', 'www.youtube.com_cookies.txt.orig', 'https://www.youtube.com/watch?v=hIk79WmVg4o', '--simulate', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Single file build
[debug] Python 3.11.5 (CPython arm64 64bit) - macOS-14.0-arm64-arm-64bit - OpenSSL 3.1.2 1 Aug 2023
[debug] exe versions: ffmpeg 6.0, ffprobe 6.0, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] hIk79WmVg4o: Downloading webpage
[debug] [youtube] Decrypted nsig MrLUmkB2Y6KQ8au => rfQN5st9hUpusA
[debug] [youtube] Decrypted nsig R7LETpOr7_U_1Uo => 1vvMMGzfcb0OcQ
[debug] Default format spec: bestvideo+bestaudio/best
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookies', 'www.youtube.com_cookies2.txt', 'https://www.youtube.com/watch?v=hIk79WmVg4o', '--simulate', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Single file build
[debug] Python 3.11.5 (CPython arm64 64bit) - macOS-14.0-arm64-arm-64bit - OpenSSL 3.1.2 1 Aug 2023
[debug] exe versions: ffmpeg 6.0, ffprobe 6.0, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] hIk79WmVg4o: Downloading webpage
[debug] [youtube] Decrypted nsig GbOEWcANGmYKOcD => 5ya2U0w5NQdocw
[debug] [youtube] Decrypted nsig LLS6T58C17tcLdT => OA8W1PlN9XGOSg
[debug] Default format spec: bestvideo+bestaudio/best
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookies', 'youtube.com_cookies.txt', 'https://www.youtube.com/watch?v=hIk79WmVg4o', '--simulate', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Single file build
[debug] Python 3.11.5 (CPython arm64 64bit) - macOS-14.0-arm64-arm-64bit - OpenSSL 3.1.2 1 Aug 2023
[debug] exe versions: ffmpeg 6.0, ffprobe 6.0, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] hIk79WmVg4o: Downloading webpage
[debug] [youtube] Decrypted nsig 27AnFr4ljwxW8jV => SBGxi2_Dk5Ct_Q
[debug] [youtube] Decrypted nsig yLZxCxvR64WhzEI => 3QBNqyrn7EbSJg
[debug] Default format spec: bestvideo+bestaudio/best
~/Des/t/from_server
Hey there,
Curious if you are seeing your cookies expire ina day or two all of a sudden ? This was working great for ages , thank you by the way, then all of a sudden it failed last week. I updated the cookie and it started working again and then again this week its expired ...
I am curious if you are seeing anything similar
-John