Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 464498
Collapse All | Expand All

(-)a/share/lua/playlist/appletrailers.lua (-3 / +3 lines)
Lines 67-73 function parse() Link Here
67
            description = find( line, "h%d.->(.-)</h%d") .. ' '
67
            description = find( line, "h%d.->(.-)</h%d") .. ' '
68
        end
68
        end
69
        if string.match( line, 'img src=') then
69
        if string.match( line, 'img src=') then
70
            for img in string.gmatch(line, '<img src="(http://.*\.jpg)" ') do
70
            for img in string.gmatch(line, '<img src="(http://.*%.jpg)" ') do
71
                art_url = img
71
                art_url = img
72
            end
72
            end
73
            for i,value in pairs(playlist) do
73
            for i,value in pairs(playlist) do
Lines 76-83 function parse() Link Here
76
                else break end
76
                else break end
77
            end
77
            end
78
        end
78
        end
79
        if string.match( line, "class=\"hd\".-\.mov") then
79
        if string.match( line, 'class="hd".-%.mov') then
80
            for urlline,resolution in string.gmatch(line, "class=\"hd\".-href=\"(.-.mov)\".-(%d+.-p)") do
80
            for urlline,resolution in string.gmatch(line, 'class="hd".-href="(.-%.mov)".-(%d+.-p)') do
81
                urlline = string.gsub( urlline, "_"..resolution, "_h"..resolution )
81
                urlline = string.gsub( urlline, "_"..resolution, "_h"..resolution )
82
                table.insert( playlist, { path = urlline,
82
                table.insert( playlist, { path = urlline,
83
                                          name = description ..  '(' .. resolution .. ')',
83
                                          name = description ..  '(' .. resolution .. ')',
(-)a/share/lua/playlist/extreme.lua (-5 / +5 lines)
Lines 34-47 end Link Here
34
-- Probe function.
34
-- Probe function.
35
function probe()
35
function probe()
36
    return vlc.access == "http"
36
    return vlc.access == "http"
37
        and string.match( vlc.path, "extreme.com/." )
37
        and string.match( vlc.path, "extreme%.com/." )
38
        or string.match( vlc.path, "freecaster.tv/." )
38
        or string.match( vlc.path, "freecaster%.tv/." )
39
        or string.match( vlc.path, "player.extreme.com/info/.")
39
        or string.match( vlc.path, "player%.extreme%.com/info/.")
40
end
40
end
41
41
42
-- Parse function.
42
-- Parse function.
43
function parse()
43
function parse()
44
    if (string.match( vlc.path, "extreme\.com/." ) or string.match( vlc.path, "freecaster\.tv/." )) and not string.match( vlc.path, "player.extreme.com/info/") then
44
    if (string.match( vlc.path, "extreme%.com/." ) or string.match( vlc.path, "freecaster%.tv/." )) and not string.match( vlc.path, "player%.extreme%.com/info/") then
45
        while true do
45
        while true do
46
            line = vlc.readline()
46
            line = vlc.readline()
47
            if not line then break end
47
            if not line then break end
Lines 54-60 function parse() Link Here
54
        return { { path = "http://player.extreme.com/info/" .. vid; name = "extreme.com video"; } }
54
        return { { path = "http://player.extreme.com/info/" .. vid; name = "extreme.com video"; } }
55
    end
55
    end
56
56
57
    if string.match( vlc.path, "player.extreme.com/info/." ) then
57
    if string.match( vlc.path, "player%.extreme%.com/info/." ) then
58
        prefres = get_prefres()
58
        prefres = get_prefres()
59
        gostraight = true
59
        gostraight = true
60
        while true do
60
        while true do
(-)a/share/lua/playlist/katsomo.lua (-1 / +1 lines)
Lines 57-63 function parse() Link Here
57
        then
57
        then
58
            arturl = "http://www.katsomo.fi"..find( line, " src=\"(.-)\" alt=" )
58
            arturl = "http://www.katsomo.fi"..find( line, " src=\"(.-)\" alt=" )
59
        end
59
        end
60
        for treeid,name in string.gmatch( line, "/\?treeId=(%d+)\">([^<]+)</a") do
60
        for treeid,name in string.gmatch( line, '/%?treeId=(%d+)">([^<]+)</a') do
61
            name = vlc.strings.resolve_xml_special_chars( name )
61
            name = vlc.strings.resolve_xml_special_chars( name )
62
            name = vlc.strings.from_charset( "ISO_8859-1", name )
62
            name = vlc.strings.from_charset( "ISO_8859-1", name )
63
            path = "http://www.katsomo.fi/?treeId="..treeid
63
            path = "http://www.katsomo.fi/?treeId="..treeid
(-)a/share/lua/playlist/mpora.lua (-2 / +2 lines)
Lines 23-29 Link Here
23
-- Probe function.
23
-- Probe function.
24
function probe()
24
function probe()
25
    return vlc.access == "http"
25
    return vlc.access == "http"
26
        and string.match( vlc.path, "video.mpora.com/watch/" )
26
        and string.match( vlc.path, "video%.mpora%.com/watch/" )
27
end
27
end
28
28
29
-- Parse function.
29
-- Parse function.
Lines 40-46 function parse() Link Here
40
            _,_,arturl = string.find( line, "image_src\" href=\"(.*)\" />" )
40
            _,_,arturl = string.find( line, "image_src\" href=\"(.*)\" />" )
41
        end
41
        end
42
        if string.match( line, "video_src" ) then
42
        if string.match( line, "video_src" ) then
43
            _,_,video = string.find( line, "href=\"http://video\.mpora\.com/ep/(.*).swf\" />" )
43
            _,_,video = string.find( line, 'href="http://video%.mpora%.com/ep/(.*)%.swf" />' )
44
        end
44
        end
45
45
46
    end
46
    end
(-)a/share/lua/playlist/pinkbike.lua (-2 / +2 lines)
Lines 45-54 function parse() Link Here
45
			end
45
			end
46
			-- Try to find server which has our video
46
			-- Try to find server which has our video
47
			if string.match( line, "<link rel=\"videothumbnail\" href=\"http://(.*)/vt/svt-") then
47
			if string.match( line, "<link rel=\"videothumbnail\" href=\"http://(.*)/vt/svt-") then
48
				_,_,server = string.find (line, "<link rel=\"videothumbnail\"\ href=\"http://(.*)/vt/svt-" )
48
				_,_,server = string.find (line, '<link rel="videothumbnail" href="http://(.*)/vt/svt-' )
49
			end
49
			end
50
			if string.match( line, "<link rel=\"videothumbnail\" href=\"(.*)\" type=\"image/jpeg\"") then
50
			if string.match( line, "<link rel=\"videothumbnail\" href=\"(.*)\" type=\"image/jpeg\"") then
51
				_,_,arturl = string.find (line, "<link rel=\"videothumbnail\" href=\"(.*)\"\ type=\"image/jpeg\"")
51
				_,_,arturl = string.find (line, '<link rel="videothumbnail" href="(.*)" type="image/jpeg"')
52
			end
52
			end
53
		end
53
		end
54
54

Return to bug 464498