File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
@register_provider
15
15
class TubeSyncFileSystemPCP (PoTokenCacheProvider ): # Provider class name must end with "PCP"
16
- PROVIDER_VERSION = '0.0.1 '
16
+ PROVIDER_VERSION = '0.0.2 '
17
17
# Define a unique display name for the provider
18
18
PROVIDER_NAME = 'TubeSync-fs'
19
19
BUG_REPORT_LOCATION = 'https://github.com/meeb/tubesync/issues'
@@ -42,9 +42,8 @@ def is_available(self) -> bool:
42
42
cache_home = getenv ('XDG_CACHE_HOME' )
43
43
if not cache_home :
44
44
return False
45
- # TODO: check the actual setting: cookiefile
46
- cookie_file = Path (cache_home ) / '../cookies.txt'
47
- if not cookie_file .is_file ():
45
+ cookie_file = self .ie .get_param ('cookiefile' )
46
+ if cookie_file is None or not Path (cookie_file ).is_file ():
48
47
return False
49
48
directory = Path (cache_home ) / 'yt-dlp/youtube-pot'
50
49
if directory .exists () and directory .is_dir ():
You can’t perform that action at this time.
0 commit comments