cooperdk / YAPO-e-plus

YAPO e+ - Yet Another Porn Organizer (extended)
https://github.com/cooperdk/YAPO-e-plus
GNU General Public License v3.0
145 stars 15 forks source link

Feature request: ability to add empornium URL to a scene which automatically imports tags from the site #8

Closed bikkmakk86 closed 4 years ago

bikkmakk86 commented 4 years ago

I'm not sure if emp has any actual API for this, but it would make things easier if tags and maybe the cover picture could be imported automatically using the torrent ID

derberherbert commented 4 years ago

The id and tags are actually in the .torrent files. No need to scrape the website. The torrent_parser python library can read the information.

Example:

import torrent_parser

data = torrent_parser.parse_torrent_file('xxx.torrent')
print(data['comment']) #emp url
print(data['metadata']['title'])
print(data['metadata']['taglist'])
print(data['metadata']['cover url'])
print(data['metadata']['description']) #the actual description text from the website
bikkmakk86 commented 4 years ago

That sounds very promising, however a direct link might be preferred as it could update new tags added since the torrent file was originally downloaded

cooperdk commented 4 years ago

This sounds interesting. However, I don't have access to Empornium, because I haven't been using it enough (???) I am told that my user has been disabled due to inactivity.

So, I need an invite to work with this.

bikkmakk86 commented 4 years ago

@cooperdk if you've already had an account with them, you should ask them to restore that one or else your new account and your invitor's might get banned:

You are allowed 1 account per person per lifetime. If we find you have more than one account, all will be disabled. If you previously had an account, come to our IRC chat to restore it. Connect to irc.digitalirc.org and join #empornium-help or you can use the Webchat.

Here's the link to their webchat, they're usually very easy going people so there shouldn't be a problem with this.

Also I've scrubbed through their rules and even though there doesn't seem to be a rule against scrubbing I think asking them a permission before would be a good idea.

bikkmakk86 commented 4 years ago

So I've asked and it turns out any scraping is against the rules however as @derberherbert mentioned it is possible to get data from the torrent files itself

cooperdk commented 4 years ago

Yeah, but how to get a hold of them, and if you search or download them from EMP, then you technically scrape.

Rarbg only includes filenames and filesize.

Fra: bikkmakk86 [mailto:notifications@github.com] Sendt: 14. juni 2020 15:03 Til: cooperdk/YAPO-e-plus Cc: cooperdk; Mention Emne: Re: [cooperdk/YAPO-e-plus] Feature request: ability to add empornium URL to a scene which automatically imports tags from the site (#8)

So I've asked and it turns out any scraping is against the rules however as @derberherbert https://github.com/derberherbert mentioned it is possible https://www.empornium.me/forum/thread/106300 to get data from the torrent files itself

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cooperdk/YAPO-e-plus/issues/8#issuecomment-643763837 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEJXNVFVSP4KVTHRR5O4FDRWTDBPANCNFSM4N4BXACQ . https://github.com/notifications/beacon/AAEJXNUQLPSUSDLCDKZXQALRWTDBPA5CNFSM4N4BXAC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEZPQ47I.gif

cooperdk commented 4 years ago

I have now contacted the admins by IRC and it seems they cannot find my old account information. Meaning I apparently don't have an account...

So I do need an invite :-)

ghost commented 4 years ago

i would really advise to leave any link to clearly illegal sites alone. it is one thing to manage your own, legally owned collection, but linking it to empornium (in ANY way) is just a step further into getting banned or else.

this said - can i get an invite, too? ;-)

cooperdk commented 4 years ago

I am actually contemplating on using some scrape functionality from PhoenixAdult.bundle which looks interesting. It has lots of scrapers for video, directly working on the network sites.

Fra: Merodac [mailto:notifications@github.com] Sendt: 19. juni 2020 14:31 Til: cooperdk/YAPO-e-plus Cc: cooperdk; Mention Emne: Re: [cooperdk/YAPO-e-plus] Feature request: ability to add empornium URL to a scene which automatically imports tags from the site (#8)

i would really advise to leave any link to clearly illegal sites alone. it is one thing to manage your own, legally owned collection, but linking it to empornium (in ANY way) is just a step further into getting banned or else.

this said - can i get an invite, too? ;-)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cooperdk/YAPO-e-plus/issues/8#issuecomment-646609906 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEJXNWBQTUJQBKBQCPYX43RXNLAVANCNFSM4N4BXACQ . https://github.com/notifications/beacon/AAEJXNQBD3EUNS6NCUAD4ULRXNLAVA5CNFSM4N4BXAC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE2FHX4Q.gif

cooperdk commented 4 years ago

We are not going to develop YAPO for closed sites like EMP (since we have no way to use it), and we are not going to develop YAPO to support obviously illegal sites.