Support 'album-' vk.com URLs
This commit is contained in:
parent
62538b8061
commit
2947c3d56b
@ -204,7 +204,7 @@ public class VkRipper extends AlbumRipper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getGID(URL url) throws MalformedURLException {
|
public String getGID(URL url) throws MalformedURLException {
|
||||||
Pattern p = Pattern.compile("^https?://(www\\.)?vk\\.com/(photos|album|videos)([a-zA-Z0-9_]{1,}).*$");
|
Pattern p = Pattern.compile("^https?://(www\\.)?vk\\.com/(photos|album|videos)-?([a-zA-Z0-9_]{1,}).*$");
|
||||||
Matcher m = p.matcher(url.toExternalForm());
|
Matcher m = p.matcher(url.toExternalForm());
|
||||||
if (!m.matches()) {
|
if (!m.matches()) {
|
||||||
throw new MalformedURLException("Expected format: http://vk.com/album#### or vk.com/photos####");
|
throw new MalformedURLException("Expected format: http://vk.com/album#### or vk.com/photos####");
|
||||||
|
Loading…
Reference in New Issue
Block a user