-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix x3vid filenames (remove colons) because Windows is fragile #72
Comments
This one-line change (below, find the line marked "added THIS LINE") seems to be working. My first attempt to modify the write_to_file() method caused copy_image() to crash. I'm still not sure why.
|
If x3vid.com doesn't use filenames worth preserving, I would recommend this instead:
Now when you re-run it should say "Using x3vid plugin", and you should get filenames that look like 001.jpg, 002.jpg, etc. If you're happy with the result, feel free to open a pull request with your addition of the plugin! |
This is a good suggestion, but I have a ticket about how limited that functionality is. It recycles the numbers across pages on some sites. (I posted a patch that fixes this, but it's probably kludgy; for example, if there are two threads, the numbering starts from 3 0003, 0004, ... and I don't know why). I was looking for a way to just remove characters that Windows considers illegal in filenames and I wish it was easier to add things to the plugins so I can add A significant problem is that I can code in other languages, but I'm almost completely ignorant of python3... |
GG gets images from x3vid.com "full image" pages, but the filenames I see on Windows are goofy because (I think) they have colons in them. [I don't know if this affects all filenames on x3vid. FWIW, the URL is: https://x3vid.com/gallery_pics/3424569/Public_nudity_35?page=1]
The HTML snippet is below and I see GG saving the image to the name used by the website as-is, but Windows displays this image as 'HQEQHE~F.JPG'. OTOH, Chrome removes the colon (silently) and then the filename is sensible. Any clues how I could hack GG to also silently remove the colons?
The text was updated successfully, but these errors were encountered: