summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
committermsglm <msglm@techchud.xyz>2023-01-11 20:51:08 -0600
commitf36ab6a55613b1ced7b414a8c16210943b422e16 (patch)
tree6cb59ae9a4c535ba4a7f5f1aa57a4ff978617348
parent5e46e3cb418075969491583f546a388381a2f404 (diff)
downloadcomedyGenerator-f36ab6a55613b1ced7b414a8c16210943b422e16.tar.gz
comedyGenerator-f36ab6a55613b1ced7b414a8c16210943b422e16.tar.bz2
comedyGenerator-f36ab6a55613b1ced7b414a8c16210943b422e16.zip
quotes no longer appear in names to prevent embed failures
-rwxr-xr-xcomedyGenerator4
1 files changed, 2 insertions, 2 deletions
diff --git a/comedyGenerator b/comedyGenerator
index cd0bc00..19392e0 100755
--- a/comedyGenerator
+++ b/comedyGenerator
@@ -217,6 +217,7 @@ for tags in args.tags:
if args.verbose:
print("shortening name because its too long")
name = name[0:200]
+ name = name.replace('"', "")
outputPath = args.output + tags + " - " + name + "." + urlsplit[len(urlsplit)-1]
if args.verbose:
print("name read as: " + name)
@@ -224,8 +225,7 @@ for tags in args.tags:
print(name + " already exists!")
else:
print("saving " + video + " as " + name)
- for tries in range(100):
- urllib.request.urlretrieve(video, outputPath)
+ urllib.request.urlretrieve(video, outputPath)
if args.jobs > 1 and args.noDownload == False:
pool = Pool(args.jobs)
for video in videos: