#1
|
|||
|
|||
replaces the _ character?
In the current youtube plugin, when setting the package name to include the video ID (for example *PLAYLIST_POSITION*-*ID*-*VIDEO_NAME*). When it starts downloading videos, if it finds a video that contains an underscore character in the ID, it will replace it with an empty space (for example from "adQx_afJHQ-kjg" => "adQx afJHQ-kjg"), which is not correct.
|
#2
|
||||
|
||||
@DiegoIA: Package names are cleaned up and _ will be replaced. See Settings->Advanced Settings->GeneralSettings.cleanupfilenames
Currently it's not possible to disable this for packages only
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
I see, that renders the ID functionality useless in that plugin then. Will figure a way around it in my script. Thank you in any case.
|
#4
|
||||
|
||||
@DiegoIA: You need the linkID in filename? knowing that the _ will be replaced with space should be easy to parse/handle when you read filenames again. you could for example change pattern to
id-ID-id and then know that everything between id-X-id is the id X?
__________________
JD-Dev & Server-Admin |
#5
|
|||
|
|||
I was using the ID to keep track of the files, but yeah, that's exactly what I did, replace the white spaces with underscores. I was just afraid that was not the only character being replaced, since I don't know exactly which other "special characters does youtube use to generate their IDs. And even though in my case it was not a problem because my purpose was my own scripts, there might be people who might rely on already made programs that need complete ID in the title, who knows
|
#6
|
||||
|
||||
@DiegoIA: The _ is replaced for *nicer* names. Once is done, you will be able to specify your own *rules* for character replacement.
You could also, depending on file system, store additional meta information to each file and not having to rely on filename for this
__________________
JD-Dev & Server-Admin |
#7
|
||||
|
||||
Jiaz: there used to be possible jiaz FilePackage
fp.setProperty("CLEANUP_NAME", false); thought youtube plugin used it years ago because of the fileid issue
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#8
|
||||
|
||||
@raztoki: I've checked the plugins but could not find any reference to any use of that property. Also, as far as I understood, it's more about the filen ame?
@DiegoIA: are you parsing folder or file name?
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
Thank you @Jiaz! I'm parsing folder names
|
#10
|
||||
|
||||
@DiegoIA: Thanks for the confirmation. In meantime I would recommend to disable the named option until new settings are available.
__________________
JD-Dev & Server-Admin |
#11
|
|||
|
|||
Thanks, for the time being I can manage since I made my script replace the empty spaces with underscores. That will be until the odd apple with an odd ID appears and messes up with my setup hehe
|
#12
|
||||
|
||||
@DiegoIA: That's an easy workaround of course
__________________
JD-Dev & Server-Admin |
#13
|
||||
|
||||
Give me some time and I will replace file names with best fitting emoj *joking*
__________________
JD-Dev & Server-Admin |
#14
|
|||
|
|||
Hahaha I'll appreciate it
|
Thread Tools | |
Display Modes | |
|
|