[fix] newpct - Detect correct IDs#1838
Conversation
Take all the IDs of the content on the page but only those that are within "parametros".
Remove all line breaks
|
This fixes the "- maybe a login page?)" thing i have noticed on the last day? |
|
If someone wanna confirm this fix ill merge it |
|
@Aokromes No, it's for download pages. |
|
We need to convert all "\n" and "\r" from a webpage? In my opinion is excessive. I have fixed the error just by changing this line: But that solution also will work. |
|
@malkavi I have tried your solution but can not find any ID. In my example link the html is in one line, beause the "\n" is literal not is a new line |
|
@rsalas Please try with non edited/replaced webpage. Copy and Paste a new one using control+u. Maybe better this way? |
|
@malkavi The second regular expression I like, because if the ad has a "," previous will take this id, with "parametros" is more safely. I change the PR. |
|
It's OK for me. I have tested this PR successfully. Added a new serie and downloaded the torrent. Test: "Los Pasajeros Del Tiempo" `FlexGet has just downloaded 1 new entries for task mis_series:
|
Take all the IDs of the content on the page but the valid are those are within "parametros".
Detailed changes:
RegEx Test
Replace: (?:parametros\s*=\s*.*?) for check match.