Skip to content
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

Requesting Support For New Site: Private Silver Screen (PSS) #37

Closed
SiskoUrso opened this issue Sep 9, 2024 · 3 comments · Fixed by #38
Closed

Requesting Support For New Site: Private Silver Screen (PSS) #37

SiskoUrso opened this issue Sep 9, 2024 · 3 comments · Fixed by #38
Labels
enhancement New feature or request PR welcome Will accept pull request

Comments

@SiskoUrso
Copy link

Reaching out to put in a request for a new tracker, Private Silver Screen (PSS) https://privatesilverscreen.cc/ , It uses Unit3d.

Let me know if you need any further details.

@Audionut Audionut added enhancement New feature or request PR welcome Will accept pull request labels Sep 10, 2024
@Audionut
Copy link
Owner

Audionut commented Sep 10, 2024

You can look at the changes https://github.com/Audionut/Upload-Assistant/pull/23/files and https://github.com/Audionut/Upload-Assistant/pull/25/files for an idea of how to add a UNIT3D site. You can use an existing UNIT3D site file as a template, or https://github.com/Audionut/Upload-Assistant/blob/master/src/trackers/UNIT3D_TEMPLATE.py

The biggest issues that need site access and to be changed, are the ID's

async def get_cat_id(self, category_name):

These are generally slightly different for each site. You can go to your site, browse the torrents, open the advanced search panel, and then individually click each category, type and resolution, and watch what numbers are returned in the url bar. This will show you what numbers should be used for each ID in the site file.

Make sure the URL's in the site file are correct

self.upload_url = 'https://domain.tld/api/torrents/upload'
should only need a domain change,

The self.tracker should be what you are calling the site. So if you are using PSS, you would use that at self.trackerand all areas where you refer to the site, like https://github.com/Audionut/Upload-Assistant/pull/23/files#diff-79121935774362ae6d2fd9619f64fcdaea2104da659a1eeeb240b636b9222ad8R39

Then just make sure to also change

class UNIT3D_TEMPLATE():
to site label (PSS in this instance) and you should be good to go.

If the site has unique rules and/or naming scheme, this would require much more work. If you're committed, there's an example of naming editing https://github.com/Audionut/Upload-Assistant/pull/23/files#diff-a7bbaf70a34d73c89cc77396ee88b783b54baece93372e63bf7b6a4a8fc73472R180 with a more comprehensive example

async def get_name(self, meta):

@SiskoUrso
Copy link
Author

Thanks for the details, I will work on this later and hopefully put in a PR soon with it.

@SiskoUrso
Copy link
Author

Think everything is in order, put in the pr at #38

@Audionut Audionut linked a pull request Sep 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR welcome Will accept pull request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants