decoratore scrape, aggiunto parametro flags e flagsBlock per modifica flag regex

This commit is contained in:
marco
2023-08-10 13:19:29 +02:00
parent 074adf7e73
commit 4d2968a308
3 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ def peliculas(item):
patron = r'>[^"<]+'
else:
patron = r'>(?P<quality>[^"<]+)'
patron += '(?i)<td[^>]+><a class="tab" href="(?P<url>[^"]+)"\s*>[^<]+<[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<size>[^<]+)<[^>]+>[^>]+>[^>]+><form action="[^"]+/\d+/(?P<title>[^"]+)[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<seed>[^<]+)'
patron += '<td[^>]+><a class="tab" href="(?P<url>[^"]+)"\s*>[^<]+<[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<size>[^<]+)<[^>]+>[^>]+>[^>]+><form action="[^"]+/\d+/(?P<title>[^"]+)[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<seed>[^<]+)'
def itemHook(item):
if not sceneTitle: