[PornHub] Added explicit check for pagination

This commit is contained in:
Parmjit Virk 2018-09-08 18:22:21 -05:00
parent 47f1c4752b
commit 67a4bdc7ab

View File

@ -426,5 +426,7 @@ class PornHubUserVideosIE(PornHubPlaylistBaseIE):
if not page_entries:
break
entries.extend(page_entries)
if re.search(r'<button\s+id="moreDataBtn"|<link\s+rel="next"', webpage) is None:
break
return self.playlist_result(entries, user_id)