remove '&' from URL patterns
'/?&#' -> '/?#' and '?&#' -> '?#' According to https://www.ietf.org/rfc/rfc3986.txt, URLs are "organized hierarchically" by using "the slash ("/"), question mark ("?"), and number sign ("#") characters to delimit components"
This commit is contained in:
@@ -22,7 +22,7 @@ class PhotobucketAlbumExtractor(Extractor):
|
||||
filename_fmt = "{offset:>03}{pictureId:?_//}_{titleOrFilename}.{extension}"
|
||||
archive_fmt = "{id}"
|
||||
pattern = (r"(?:https?://)?((?:[^.]+\.)?photobucket\.com)"
|
||||
r"/user/[^/?&#]+/library(?:/[^?&#]*)?")
|
||||
r"/user/[^/?#]+/library(?:/[^?#]*)?")
|
||||
test = (
|
||||
("https://s369.photobucket.com/user/CrpyLrkr/library", {
|
||||
"pattern": r"https?://[oi]+\d+.photobucket.com/albums/oo139/",
|
||||
@@ -111,8 +111,8 @@ class PhotobucketImageExtractor(Extractor):
|
||||
filename_fmt = "{pictureId:?/_/}{titleOrFilename}.{extension}"
|
||||
archive_fmt = "{username}_{id}"
|
||||
pattern = (r"(?:https?://)?(?:[^.]+\.)?photobucket\.com"
|
||||
r"(?:/gallery/user/([^/?&#]+)/media/([^/?&#]+)"
|
||||
r"|/user/([^/?&#]+)/media/[^?&#]+\.html)")
|
||||
r"(?:/gallery/user/([^/?#]+)/media/([^/?#]+)"
|
||||
r"|/user/([^/?#]+)/media/[^?#]+\.html)")
|
||||
test = (
|
||||
(("https://s271.photobucket.com/user/lakerfanryan"
|
||||
"/media/Untitled-3-1.jpg.html"), {
|
||||
|
||||
Reference in New Issue
Block a user