Fixed cookies
This commit is contained in:
parent
c3d2b98bb5
commit
857be3cf2f
|
@ -6,7 +6,6 @@ from dataclasses import dataclass
|
||||||
from typing import ClassVar
|
from typing import ClassVar
|
||||||
|
|
||||||
from personal_data.data import DeduplicateMode, Scraper
|
from personal_data.data import DeduplicateMode, Scraper
|
||||||
from personal_data.secrets import YOUTUBE_AUTH
|
|
||||||
|
|
||||||
from ..util import safe_del
|
from ..util import safe_del
|
||||||
|
|
||||||
|
@ -21,10 +20,9 @@ def scrape(watch_history: bool) -> list[dict[str, str]]:
|
||||||
url = 'https://www.youtube.com/feed/history'
|
url = 'https://www.youtube.com/feed/history'
|
||||||
ytdlp_args = [
|
ytdlp_args = [
|
||||||
'yt-dlp',
|
'yt-dlp',
|
||||||
'--dump-json',
|
|
||||||
'--cookies',
|
|
||||||
YOUTUBE_AUTH,
|
|
||||||
url,
|
url,
|
||||||
|
'--dump-json',
|
||||||
|
'--cookies-from-browser', 'firefox:/home/jmaa/.cachy/mbui5xg7.default-release',
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
url = f'https://www.youtube.com/playlist?list={PLAYLIST_ID}'
|
url = f'https://www.youtube.com/playlist?list={PLAYLIST_ID}'
|
||||||
|
|
|
@ -71,4 +71,3 @@ JELLYFIN_PASSWORD = secrets.load('JELLYFIN_PASSWORD')
|
||||||
WITHINGS_CLIENTID = secrets.load('WITHINGS_CLIENTID')
|
WITHINGS_CLIENTID = secrets.load('WITHINGS_CLIENTID')
|
||||||
WITHINGS_SECRET = secrets.load('WITHINGS_SECRET')
|
WITHINGS_SECRET = secrets.load('WITHINGS_SECRET')
|
||||||
WITHINGS_CALLBACK_URI = secrets.load('WITHINGS_CALLBACK_URI')
|
WITHINGS_CALLBACK_URI = secrets.load('WITHINGS_CALLBACK_URI')
|
||||||
YOUTUBE_AUTH = secrets.load('YOUTUBE_AUTH')
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user