mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-06 14:08:59 +00:00
Fixed BongaCams, links parsing improved (#297)
* Fixed BongaCams, links parsing improved * Fixed tests
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ def test_site_url_detector():
|
||||
|
||||
assert (
|
||||
db.sites[0].url_regexp.pattern
|
||||
== r'^https?://(www.)?forum\.amperka\.ru/members/\?username=(.+?)$'
|
||||
== r'^https?://(www.|m.)?forum\.amperka\.ru/members/\?username=(.+?)$'
|
||||
)
|
||||
assert (
|
||||
db.sites[0].detect_username('http://forum.amperka.ru/members/?username=test')
|
||||
|
||||
+1
-1
@@ -98,7 +98,7 @@ def test_url_make_profile_url_regexp():
|
||||
# ensure all combinations match pattern
|
||||
assert (
|
||||
URLMatcher.make_profile_url_regexp(url).pattern
|
||||
== r'^https?://(www.)?flickr\.com/photos/(.+?)$'
|
||||
== r'^https?://(www.|m.)?flickr\.com/photos/(.+?)$'
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user