Changeset 27895 for ipk/source.sh4/network_xupnpd
- Timestamp:
- Mar 23, 2014, 11:07:01 PM (12 years ago)
- Location:
- ipk/source.sh4/network_xupnpd/_path_/etc/xupnpd/plugins
- Files:
-
- 2 edited
-
xupnpd_vimeo.lua (modified) (3 diffs)
-
xupnpd_youtube.lua (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/network_xupnpd/_path_/etc/xupnpd/plugins/xupnpd_vimeo.lua
r27875 r27895 4 4 5 5 cfg.vimeo_video_count=100 6 cfg.vimeo_fmt='hd' 6 7 7 8 function vimeo_parse_feed(feed_url) … … 93 94 local vimeo_id=string.match(vimeo_url,'.+/(%w+)$') 94 95 95 local c lip_page=plugin_download(vimeo_url)96 local config=plugin_download('http://player.vimeo.com/v2/video/'..vimeo_id..'/config') 96 97 97 if clip_page then 98 local ts,sig=string.match(clip_page,'"timestamp":(%w+),"signature":"(%w+)",') 99 clip_page=nil 98 if config then 99 local x=json.decode(config) 100 100 101 if sig and ts then 102 url=string.format('http://player.vimeo.com/play_redirect?clip_id=%s&sig=%s&time=%s&quality=hd&codecs=H264&type=moogaloop_local&embed_location=',vimeo_id,sig,ts) 101 config=nil 102 103 if x and x.request and x.request.files and x.request.files.h264 then 104 if cfg.vimeo_fmt=='sd' then 105 url=x.request.files.h264.sd 106 else 107 url=x.request.files.h264.hd or x.request.files.h264.sd 108 end 103 109 end 104 110 end 105 111 106 return url 112 if url then return url.url end 113 114 return nil 107 115 108 116 end … … 117 125 plugins.vimeo.ui_config_vars= 118 126 { 119 { "input", "vimeo_video_count", "int" } 127 { "input", "vimeo_video_count", "int" }, 128 { "select", "vimeo_fmt" } 120 129 } -
ipk/source.sh4/network_xupnpd/_path_/etc/xupnpd/plugins/xupnpd_youtube.lua
r27875 r27895 229 229 end 230 230 231 urls[tonumber(item['itag'])]=item['url']..'&signature='..(item['sig'] or item['s']) 231 local sig=item['sig'] or item['s'] 232 local u=item['url'] 233 if sig then u=u..'&signature='..sig end 234 --print(item['itag'],u) 235 urls[tonumber(item['itag'])]=u 232 236 233 237 --print('\n')
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)