Changeset 1946

Show
Ignore:
Timestamp:
05/08/07 14:27:51
Author:
mizzy
Message:

CustomFeed?::YouTube?: fix regexp to get page content.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/CustomFeed/YouTube.pm

    r1889 r1946  
    6666        while (<$fh>) { 
    6767            # get title 
    68             m!<div class="vtitle">! 
     68            m!<div class="vSnippetTitle">! 
    6969                and $title_flag = 1; 
    7070            m!<a href="/watch\?v=([^"]+)"[^>]+>(.+)</a>! 
     
    7777                }; 
    7878            # get image url 
    79             m!<img src="(http://[\w-]*static\d+(.[\w-]+)?\.youtube.com/[^">]+/[12].jpg)" border="0" class="vimg120" />! 
     79            m!<img src="(http://img.youtube.com/[^">]+/[12].jpg)" border="0" class="vimg120" />! 
    8080                and $data->{image}->{url} = $1; 
    8181            # get description 
     
    9696                }; 
    9797            # get author 
    98             m!From:</span> <a href="/user/[^>]+">([^<]+)</a>! 
     98            m!From:</span> <a[^>]+href="/user/[^>]+">([^<]+)</a>! 
    9999                and $data->{author} = $1; 
    100100            m/<!-- end vEntry -->/