This commit is contained in:
Daniel Langbein 2023-11-09 18:09:00 +01:00
parent 73be70bd4c
commit 6234af405c
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 11 additions and 11 deletions

4
.gitignore vendored
View File

@ -5,8 +5,4 @@
/.venv/ /.venv/
/.idea/ /.idea/
/.git/ /.git/
/data
/src/nextcast/data/
/*.zip /*.zip

View File

@ -4,28 +4,32 @@ from pathlib import Path
def get_audio_dir() -> Path: def get_audio_dir() -> Path:
return Path('data') / 'audio' return datadir() / 'audio'
def get_feed_dir() -> Path: def get_feed_dir() -> Path:
return Path('data') / 'feed' return datadir() / 'feed'
def get_podcast_dir() -> Path: def get_podcast_dir() -> Path:
return Path('data') / 'podcast' return datadir() / 'podcast'
def get_mpv_watch_later_dir() -> Path: def get_mpv_watch_later_dir() -> Path:
return Path('data') / 'watch_later' return datadir() / 'watch_later'
def get_timestamp_file(): def get_timestamp_file():
return Path('data') / 'timestamps.json' return datadir() / 'timestamps.json'
def get_subscription_file(): def get_subscription_file():
return Path('data') / 'subscriptions.json' return datadir() / 'subscriptions.json'
def get_credential_file(): def get_credential_file():
return Path('data') / 'nc_logins.json' return datadir() / 'nc_logins.json'
def datadir() -> Path:
return Path.home() / 'nextcast'