Plugin Directory

Changeset 375140


Ignore:
Timestamp:
04/20/2011 09:12:45 AM (15 years ago)
Author:
mhawksey
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • everpress/trunk/everpress.php

    r198490 r375140  
    77Author: Martin Hawksey
    88Author URI: http://www.rsc-ne-scotland.org.uk/mashe
    9 Version: 1.0.1
     9Version: 1.0.2
    1010*/
    1111
     
    162162        function get_feed_url($ep_share_url) {
    163163            $file = $this->get_file_contents($ep_share_url);
    164             preg_match_all('/_web_.*: "(.*)"/', $file, $m);
    165             $url = "http://www.evernote.com/shard/".$m[1][1]."/pub/".$m[1][2]."/".$m[1][3]."/".$m[1][4]."/rss.jsp?max=25&sort=2&search=";
    166             return $url;
     164            $re1='<link.*?((?:http|https)(?::\\/{2}[\\w]+)(?:[\\/|\\.]?)(?:[^\\s"]*))';
     165            if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6."/is", $file, $matches)){
     166                $httpurl1=$matches[1][0];
     167            }
     168            return $httpurl1;
    167169        }
    168170       
Note: See TracChangeset for help on using the changeset viewer.