datadir
This commit is contained in:
parent
73be70bd4c
commit
6234af405c
4
.gitignore
vendored
4
.gitignore
vendored
@ -5,8 +5,4 @@
|
||||
/.venv/
|
||||
/.idea/
|
||||
/.git/
|
||||
|
||||
/data
|
||||
/src/nextcast/data/
|
||||
|
||||
/*.zip
|
||||
|
@ -4,28 +4,32 @@ from pathlib import Path
|
||||
|
||||
|
||||
def get_audio_dir() -> Path:
|
||||
return Path('data') / 'audio'
|
||||
return datadir() / 'audio'
|
||||
|
||||
|
||||
def get_feed_dir() -> Path:
|
||||
return Path('data') / 'feed'
|
||||
return datadir() / 'feed'
|
||||
|
||||
|
||||
def get_podcast_dir() -> Path:
|
||||
return Path('data') / 'podcast'
|
||||
return datadir() / 'podcast'
|
||||
|
||||
|
||||
def get_mpv_watch_later_dir() -> Path:
|
||||
return Path('data') / 'watch_later'
|
||||
return datadir() / 'watch_later'
|
||||
|
||||
|
||||
def get_timestamp_file():
|
||||
return Path('data') / 'timestamps.json'
|
||||
return datadir() / 'timestamps.json'
|
||||
|
||||
|
||||
def get_subscription_file():
|
||||
return Path('data') / 'subscriptions.json'
|
||||
return datadir() / 'subscriptions.json'
|
||||
|
||||
|
||||
def get_credential_file():
|
||||
return Path('data') / 'nc_logins.json'
|
||||
return datadir() / 'nc_logins.json'
|
||||
|
||||
|
||||
def datadir() -> Path:
|
||||
return Path.home() / 'nextcast'
|
||||
|
Loading…
Reference in New Issue
Block a user