Fixed error with video titles making directories
This commit is contained in:
parent
2a89badcb6
commit
3c522c6459
@ -71,7 +71,7 @@ for v in filteredVideos:
|
|||||||
# Save metadata to file
|
# Save metadata to file
|
||||||
descriptionFile = '{}/{}-{}-{}.txt'.format(playlistDir,
|
descriptionFile = '{}/{}-{}-{}.txt'.format(playlistDir,
|
||||||
getChannel(v),
|
getChannel(v),
|
||||||
getTitle(v),
|
getTitle(v).replace('/', ''),
|
||||||
getId(v))
|
getId(v))
|
||||||
if not os.path.exists(descriptionFile):
|
if not os.path.exists(descriptionFile):
|
||||||
description = open(descriptionFile, 'w')
|
description = open(descriptionFile, 'w')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user