HDInnovations / UNIT3D-Community-Edition

Private Torrent Tracker Built With Laravel, Livewire and AlpineJS.
GNU Affero General Public License v3.0
1.95k stars 372 forks source link

[Request] api poster uploads #3897

Open BitPyrate opened 4 months ago

BitPyrate commented 4 months ago

We are starting have a thriving unit3d api scripting community that has found a home on our tracker.

they are requesting api upload support for Table:movies column:poster to link to a poster offsite or perhaps upload a poster

suggestion: perhaps a condition when tmdb and the other meta sources = 0

Upvote & Fund

Fund with Polar

Roardom commented 4 months ago

The movie and tv tables are strictly linked to tmdb currently. You can change the meta on the category to "no meta", and then you can upload your own banner/poster and it will be saved on the individual torrent. If you find content missing on tmdb, I would recommend adding it so that others can benefit. Currently the unit3d api doesn't accept those parameters, but if it did, it would only be allowed for categories with "no meta" selected. That being said, a PR to add the missing functionality to the api of uploading poster/banner for torrents with the "no meta" category would be appreciated.

BitPyrate commented 4 months ago

The main point would be to upload to the "No meta" categories with a poster. right now if you mass upload to a no meta group you have to manually go back and add it. uploading a handful that's not a big problem however are faced with uploading thousands of no meta uploads. this is why im asking about the api provisions. If it was just myself one be one thing but we have several others facing the same dilemma.

We are aware about adding entries to tmdb however we are starting to have large backlogs for our upload scripts with non film stuff. book, audiobooks, we also have very obscure old films which for various reasons are not permitted to be added to tmdb. (i.e popeye 2013). TMDB also forbids many independent releases outside the studio systems or films that did not have a theatrical release.

Porn being a lesser concern as we prefer those to follow the rules closely and prefer porn to be uploaded manually if they are absent from tmdb.

I figured this would be eventually added so my personal backlog of thousands of titles i was holding off. It was only after other users are starting to wish they could automate their "no meta" uploads better is what prompted this request.

while overriding existing tmdb poster would be cool for movie meta categories that is not as essential, but a cool stretch goal

I suspect all we need is the routes added, and the torrentcontroller adapted to handle it. I'm just not an expert in this area yet. Ill spend time on it if i can but i figured it might be a relatively easy add by people more familiar with this part of the code.

HDVinnie commented 3 months ago

I'll have this added for next release.

mibj2 commented 1 month ago

Hello thank you for bringing me here Please, I am trying to understand how to send the payload with a 'no meta' category. If I understand correctly, I need to use that category

Once a 'no meta' category is created, should I send the image URL through the 'tracker-cover' payload attribute or just the link?

My template for body data: ` self.headers = { "User-Agent": "Test/0.0 (Linux 5.10.0-23-amd64)", "Accept": "application/json", } self.params = { "api_token": self.api_token, }

    self.data = {
        "name": "TEST.torrent",
        "description": "",  # mandatory
        "mediainfo": "",
        "bdinfo": " ",
        "type_id": "1",
        "resolution_id": 10,  # mandatory
        "tmdb": "",  # mandatory
        "imdb": "0",  
        "tvdb": "0",  
        "mal": "0",  
        "igdb": "0", 
        "anonymous": "0",
        "stream": "0",
        "sd": "0",
        "keywords": "",
        "personal_release": "0",
        "internal": 0,
        "featured": 0,
        "free": 0,
        "doubleup": 0,
        "sticky": 0,
        "torrent-cover": '',
    }

`

Thank you !

HDVinnie commented 1 month ago

@mibj2 I dont know if there is language barrier or what but this Issue here is for a [Request] to add the ability to upload poster and backdrops via API for no_meta categories! AKA its not a thing yet. For the last time READ before posting. Your more then welcome to submit a PR to add this functionality or bounty it for someone else to do.

mibj2 commented 1 month ago

Great! I can't wait to see it updated! You're a person of value! Wishing you good work ! HaVinnie the you’re the best! Thank you for being polite bye