Support for odd user URLs

This commit is contained in:
Dylan
2023-03-05 21:31:35 +00:00
parent adc85e2e51
commit b06f844494
2 changed files with 10 additions and 2 deletions

View File

@ -7,7 +7,7 @@ from . import twExtractError
guestToken=None
pathregex = r"\w{1,15}\/(status|statuses)\/(\d{2,20})"
userregex = r"^https?:\/\/(?:www\.)?twitter\.com\/(?:#!\/)?@?([^/?#]*)(?:[?#].*)?$"
userregex = r"^https?:\/\/(?:www\.)?twitter\.com\/(?:#!\/)?@?([^/?#]*)(?:[?#/].*)?$"
def getGuestToken():
global guestToken
if guestToken is None: