Fix custom ytdl path, Git 243
This commit is contained in:
parent
5c322d557e
commit
a9e3209606
@ -7928,8 +7928,9 @@ class TartubeApp(Gtk.Application):
|
|||||||
If self.ytdl_fork is specified, substitutes the fork for the original,
|
If self.ytdl_fork is specified, substitutes the fork for the original,
|
||||||
and returns the modified value.
|
and returns the modified value.
|
||||||
|
|
||||||
If the specified value doesn't actually contain 'youtube-dl', then it
|
If the specified value doesn't actually contain 'youtube-dl', or if the
|
||||||
is returned unmodified.
|
user has specified a custom path to the youtube-dl(c) executable, then
|
||||||
|
'arg' is returned unmodified.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|
||||||
@ -7950,7 +7951,8 @@ class TartubeApp(Gtk.Application):
|
|||||||
|
|
||||||
if not wiz_win_obj:
|
if not wiz_win_obj:
|
||||||
|
|
||||||
if self.ytdl_fork is not None:
|
if self.ytdl_fork is not None \
|
||||||
|
and not self.ytdl_path_custom_flag:
|
||||||
return re.sub('youtube-dl', self.ytdl_fork, arg)
|
return re.sub('youtube-dl', self.ytdl_fork, arg)
|
||||||
else:
|
else:
|
||||||
return arg
|
return arg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user