mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-06 05:47:29 +02:00
Support 'album-' vk.com URLs
This commit is contained in:
@@ -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####");
|
||||||
|
Reference in New Issue
Block a user