piejanssens / premiumizer

Download manager for premiumize.me cloud downloads
MIT License
172 stars 45 forks source link

naming issue #331

Closed mohitjoshi155 closed 2 years ago

mohitjoshi155 commented 2 years ago

my folders are getting named like name.torrent or name.nzb in downloads anyway to disable folder getting extension names?

neox387 commented 2 years ago

Is is not the same on premiumize.me website?

leolobato commented 2 years ago

I'm having the same issue but only on some torrents.

When it happens, the folder will be named "this.is.the.filename.torrent" (including the quotes) instead of the usual this.is.the.filename format, only on Premiumizer. On Premiumize, the folder name won't have the .torrent extension or the quotes.

Clicking on the dropbox that lets me choose the category on Premiumizer won't work for these items. It will show the categories but nothing happens when I choose one.

neox387 commented 2 years ago

Looking at my downloads I noticed it too, however I have nzbtomedia picking up the files and sonarr moving them to correct folder.

Been a while since I looked at the code but we use the file name premiuimze.me gives for the folder name, so either premiumize.me changed something or it's the tracker/indexer.

It would be possible to implement to remove .torrent/nzb from folder names before creating them in the code somewhere:) can check when I find some time

leolobato commented 2 years ago

OK, I just confirmed:

neox387 commented 2 years ago

Clicking on the dropbox that lets me choose the category on Premiumizer won't work for these items. It will show the categories but nothing happens when I choose one.

Is weird tough, this should give something in the log or debug log maybe

leolobato commented 2 years ago

Is weird tough, this should give something in the log or debug log maybe

Nothing shows up on the logs or debug logs. It's as if I didn't choose any category (and it still shows as the category was unselected).

neox387 commented 2 years ago

Found the issue :)

leolobato commented 2 years ago

@neox387 Thanks for your fix, but the issue still happens for me even after updating. This only happens on some magnet links. To summarize:

neox387 commented 2 years ago

Weird, so only on magnets links but not torrents? Would need to find one with .torrent on pm.me

leolobato commented 2 years ago

@neox387 just sent you an email with a magnet link where this happens 100% of the time.

neox387 commented 2 years ago

I see this name has " so it ends on .torrent" instead of just .torrent

And something in javascript doesn't like a name being in '' so it does not want to select a category

neox387 commented 2 years ago

should work after this then :)

leolobato commented 2 years ago

It worked! Thanks, @neox387