Skip to content

[fix] Renamed site newpct -> descargas 2020 + changes#2093

Merged
cvium merged 3 commits intoFlexget:developfrom
malkavi:develop
Mar 9, 2018
Merged

[fix] Renamed site newpct -> descargas 2020 + changes#2093
cvium merged 3 commits intoFlexget:developfrom
malkavi:develop

Conversation

@malkavi
Copy link
Copy Markdown
Contributor

@malkavi malkavi commented Mar 6, 2018

Motivation for changes:

Newpct now is descargas2020 (or tvsinpagar)

Detailed changes:

  • Changed name to descargas2020

if match:
torrent_id = match.group(2)
if 'descargas2020.com' in url:
return (torrent_id.replace('descargar-torrent','download') + '.torrent')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two issues here.

  1. There should be a space after the comma.
  2. The outermost parenthesis is unnecessary.

return (torrent_id.replace('descargar-torrent','download') + '.torrent')
else:
response = task.requests.get(torrent_id)
response = task.requests.get(response.url)
Copy link
Copy Markdown
Contributor

@cvium cvium Mar 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the re-use of variable here. Makes it unclear what's going on. You should at least comment on why you need multiple requests. It also needs a try-except.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because there are redirects. but right now the feed does not work, maybe it's better to remove it for the moment. (It's the "else" for tvsinpagar, the feed is empty actualy)

Copy link
Copy Markdown
Contributor

@cvium cvium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few changes required. Looks good otherwise.

@Lukeid
Copy link
Copy Markdown
Contributor

Lukeid commented Mar 7, 2018

Hello @malkavi,

First of all, that you for you effort keeping updated and working this.

Just one suggestion, maybe you could include all realted pages:

  • descargas2020.com
  • tvsinpagar.com
  • tumejortorrent.com
  • torrentlocura.com
  • torrentrapid.com

Take a look at issue #2083.

Thank you again.

@malkavi
Copy link
Copy Markdown
Contributor Author

malkavi commented Mar 7, 2018

i have added the clones and fixed the issues. I have removed the code that isn't useful at this moment. All the clones are similar and use the same regexp to extract the torrent.

@Aokromes Aokromes mentioned this pull request Mar 8, 2018
1 task
@cvium
Copy link
Copy Markdown
Contributor

cvium commented Mar 8, 2018

Is this finished then?

@malkavi
Copy link
Copy Markdown
Contributor Author

malkavi commented Mar 9, 2018

It's working right now. It's finished, at least for me.

@cvium cvium merged commit bffbd64 into Flexget:develop Mar 9, 2018
@cvium
Copy link
Copy Markdown
Contributor

cvium commented Mar 9, 2018

Can you update the wiki?

@malkavi
Copy link
Copy Markdown
Contributor Author

malkavi commented Mar 9, 2018

Done. Search and urlrewriter updated, and removed newpct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants