Assembla home | Assembla project page
 

Changeset 1053

Show
Ignore:
Timestamp:
08/11/08 22:58:22 (3 months ago)
Author:
Pernod
Message:

Updated (again) the regular expression that pulls the artist images from the Last.FM website when playing Last.FM radio stations.

Refs #156.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/swisscenter/ext/lastfm/lastfm.php

    r1029 r1053  
    247247        { 
    248248          // Find all images of the artist on the page using a regular expression. 
    249           if (preg_match_all('#<img src="(.*/serve/.*)" />#Ui',$html,$matches) >0 ) 
     249          if (preg_match_all('#<img.*src="(.*/serve/.*)" />#Ui',$html,$matches) >0 ) 
    250250          { 
    251251                dump($matches); 
     
    329329 
    330330      // Parameters for the handshake 
    331       $timenow = time(); 
     331      $timenow = gmt_time(); 
    332332      $hs_url  = 'http://post.audioscrobbler.com/'. 
    333333                 '?hs=true'.