From 9b9fd940518abafcdca0880ae1f0df1b70f44027 Mon Sep 17 00:00:00 2001 From: solsTiCe d'Hiver Date: Wed, 19 Jul 2017 16:41:31 +0200 Subject: [PATCH] Fix broken links --- main.py | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/main.py b/main.py index 0114eac..7b7bfec 100644 --- a/main.py +++ b/main.py @@ -20,42 +20,42 @@ _handle = int(sys.argv[1]) # In a "real life" plugin you will need to get info and links to video files/streams # from some web-site or online service. VIDEOS = {'Animals': [{'name': 'Crab', - 'thumb': 'http://www.vidsplay.com/vids/crab.jpg', - 'video': 'http://www.vidsplay.com/vids/crab.mp4', + 'thumb': 'http://www.vidsplay.com/wp-content/uploads/2017/04/crab-screenshot.jpg', + 'video': 'http://www.vidsplay.com/wp-content/uploads/2017/04/crab.mp4', 'genre': 'Animals'}, {'name': 'Alligator', - 'thumb': 'http://www.vidsplay.com/vids/alligator.jpg', - 'video': 'http://www.vidsplay.com/vids/alligator.mp4', + 'thumb': 'http://www.vidsplay.com/wp-content/uploads/2017/04/alligator-screenshot.jpg', + 'video': 'http://www.vidsplay.com/wp-content/uploads/2017/04/alligator.mp4', 'genre': 'Animals'}, {'name': 'Turtle', - 'thumb': 'http://www.vidsplay.com/vids/turtle.jpg', - 'video': 'http://www.vidsplay.com/vids/turtle.mp4', + 'thumb': 'http://www.vidsplay.com/wp-content/uploads/2017/04/turtle-screenshot.jpg', + 'video': 'http://www.vidsplay.com/wp-content/uploads/2017/04/turtle.mp4', 'genre': 'Animals'} ], 'Cars': [{'name': 'Postal Truck', - 'thumb': 'http://www.vidsplay.com/vids/us_postal.jpg', - 'video': 'http://www.vidsplay.com/vids/us_postal.mp4', + 'thumb': 'http://www.vidsplay.com/wp-content/uploads/2017/05/us_postal-screenshot.jpg', + 'video': 'http://www.vidsplay.com/wp-content/uploads/2017/05/us_postal.mp4', 'genre': 'Cars'}, {'name': 'Traffic', - 'thumb': 'http://www.vidsplay.com/vids/traffic1.jpg', - 'video': 'http://www.vidsplay.com/vids/traffic1.avi', + 'thumb': 'http://www.vidsplay.com/wp-content/uploads/2017/05/traffic1-screenshot.jpg', + 'video': 'http://www.vidsplay.com/wp-content/uploads/2017/05/traffic1.mp4', 'genre': 'Cars'}, {'name': 'Traffic Arrows', - 'thumb': 'http://www.vidsplay.com/vids/traffic_arrows.jpg', - 'video': 'http://www.vidsplay.com/vids/traffic_arrows.mp4', + 'thumb': 'http://www.vidsplay.com/wp-content/uploads/2017/05/traffic_arrows-screenshot.jpg', + 'video': 'http://www.vidsplay.com/wp-content/uploads/2017/05/traffic_arrows.mp4', 'genre': 'Cars'} ], 'Food': [{'name': 'Chicken', - 'thumb': 'http://www.vidsplay.com/vids/chicken.jpg', - 'video': 'http://www.vidsplay.com/vids/bbqchicken.mp4', + 'thumb': 'http://www.vidsplay.com/wp-content/uploads/2017/05/bbq_chicken-screenshot.jpg', + 'video': 'http://www.vidsplay.com/wp-content/uploads/2017/05/bbqchicken.mp4', 'genre': 'Food'}, {'name': 'Hamburger', - 'thumb': 'http://www.vidsplay.com/vids/hamburger.jpg', - 'video': 'http://www.vidsplay.com/vids/hamburger.mp4', + 'thumb': 'http://www.vidsplay.com/wp-content/uploads/2017/05/hamburger-screenshot.jpg', + 'video': 'http://www.vidsplay.com/wp-content/uploads/2017/05/hamburger.mp4', 'genre': 'Food'}, {'name': 'Pizza', - 'thumb': 'http://www.vidsplay.com/vids/pizza.jpg', - 'video': 'http://www.vidsplay.com/vids/pizza.mp4', + 'thumb': 'http://www.vidsplay.com/wp-content/uploads/2017/05/pizza-screenshot.jpg', + 'video': 'http://www.vidsplay.com/wp-content/uploads/2017/05/pizza.mp4', 'genre': 'Food'} ]} @@ -165,7 +165,7 @@ def list_videos(category): # This is mandatory for playable items! list_item.setProperty('IsPlayable', 'true') # Create a URL for a plugin recursive call. - # Example: plugin://plugin.video.example/?action=play&video=http://www.vidsplay.com/vids/crab.mp4 + # Example: plugin://plugin.video.example/?action=play&video=http://www.vidsplay.com/wp-content/uploads/2017/04/crab.mp4 url = get_url(action='play', video=video['video']) # Add the list item to a virtual Kodi folder. # is_folder = False means that this item won't open any sub-list.