Download & Extend

Unable to parse photos with /in/pool- in the url

Project:Media: Flickr
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:needs review

Issue Summary

here is another regex that needs to be added to _media_flickr_media_parse in media_flickr.utilities.inc

'@flickr\.com/photos/([0-9A-Za-z\@\&\$_-]+)/([0-9]+)/in/pool-([0-9A-Za-z\@\&\$_-]+)@i',

with added regex:

function _media_flickr_media_parse($url, $options = array()) {
// The following are single images.
$patterns = array(
'@flickr\.com/photos/([0-9A-Za-z\@\&\$_-]+)/([0-9]+)/in/photostream@i',
'@flickr\.com/photos/([0-9A-Za-z\@\&\$_-]+)/([0-9]+)/in/set-([0-9]+)@i',
'@flickr\.com/photos/([0-9A-Za-z\@\&\$_-]+)/([0-9]+)/?$@i',
'@flickr\.com/photos/([0-9A-Za-z\@\&\$_-]+)/([0-9]+)/in/pool-([0-9A-Za-z\@\&\$_-]+)@i',
);

when i get time i will create a patch to do this

Comments

#1

subscribe

#2

Version:7.x-1.0-alpha1» 7.x-1.x-dev

Don't look like a normal patch but done with git diff *shrug*

AttachmentSize
patch-1236624-4902336.patch 683 bytes

#3

Priority:normal» major

Media 7.x-1rc was just released, time to get this one in?