Many of the websites list embedded url's which is actually a playlist and not the actual video file , this library takes this url and its title as input and returns a list of video url's and its corresponding titles,
which you can pass through the regular LibVideoSite library. If the the provided url is not a playlist url or not supported yet, the library would just return the inputted url and the title
currently supported websites:
youtube.com
dailymotion.com
Sample URL :
http://www.youtube.com/view_play_list?p=6B9CBAB22882A992
How to include this library into your scripts:
[
--Check to see if the has the Playlist Library
if io.open(GetCurrentPath().."ScriptslibPlaylist.llf") == nil then
DownloadAndSaveFile("
http://playonscripts.com/?w=files&get=wZtaiaPYdq", GetCurrentPath() .. "ScriptslibPlaylist.llf")
if io.open(GetCurrentPath().."ScriptslibPlaylist.llf") ~= nil then
Import(GetCurrentPath().."ScriptslibPlaylist.llf");
else
ShowMsg("Could not load VideoSites Library")
end
else
Import(GetCurrentPath().."ScriptslibPlaylist.llf");
end
How to use the library :
local videos = getPlaylistVideos(title, pageURL)
for i = 1, # videos do
Log(videos[i].title..' : '..videos
.mirror)
end
]