Changeset 1093

Show
Ignore:
Timestamp:
07/16/06 19:24:25
Author:
mizzy
Message:

CustomFeed?::YouTube?: Fixed regexp of html following changing of YouTube? site.
Thanks to following URLs' owners.
http://mayoi.net/archives/2006/07/14-0943.php
http://d.hatena.ne.jp/shimibow/20060716

Files:

Legend:

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

    r845 r1093  
    5454        while (<$fh>) { 
    5555            # get title 
    56             m!<div class="title">! 
     56            m!<div class="vtitle">! 
    5757                and $title_flag = 1; 
    5858            m!<a href="/watch\?v=([^&]+)&search=[^>]+">(.+)</a>! 
     
    6464                    } 
    6565                }; 
    66             m!<img src="(http://[\w-]*static\d+(.[\w-]+)?\.youtube.com/[^">]+/1.jpg)" class="vimgSm" />! 
     66            m!<img src="(http://[\w-]*static\d+(.[\w-]+)?\.youtube.com/[^">]+/1.jpg)" class="vimg90" />! 
    6767                and $data->{image}->{url} = $1; 
    68             m!<div class="desc">(.*)</div>! 
     68            m!<div class="vdesc">(.*)</div>! 
    6969                and $data->{description} = $1; 
    70             m!<td><span class="grayText">Tags:</span></td>! 
     70            m!<div class="vtagLabel">Tags:</div>! 
    7171                and $tag_flag = 1; 
    72             m!(<td><a href="/results\?search=.*)! 
     72            m!(<a href="/results\?search=.*)! 
    7373                and do { 
    7474                    if($tag_flag){