Update GameTrailers plugin
-
- Posts: 155
- Joined: Sat May 18, 2013 5:12 pm
- Has thanked: 21 times
- Been thanked: 4 times
Update GameTrailers plugin
I would like to update the GameTrailers plugin. It works fine but it could use some more shows. I would like to add Annoyed Gamer, Pop Fiction and Talking Classics. How can i do this? So far i have went through the files in the plugin and modified the gametrailers_list files and made a gametrailers_list_popfiction and modified the default.py, the gametrailers_main_channels_py. I do not know how to find the string id. Currently the pop fiction category i made routes back to the main page of the site with various videos as the string i made up does not work.
-
- Posts: 1028
- Joined: Wed Jul 04, 2012 8:01 am
- Has thanked: 1 time
- Been thanked: 148 times
Re: Update GameTrailers plugin
hi!
This is not so little we you think.
mainly this addons use the feeds that since adressated as example podcast on Itunes to.
I think its give no feeds id for what You ask.
Better where you go to xbmc.org and ask the deveöoper from this addon that he can help.
Or you access this what you want over the Youtube channel from GameTrailers.com .
Many can you here found declared as show or playlist.
Regards Jan
This is not so little we you think.
mainly this addons use the feeds that since adressated as example podcast on Itunes to.
I think its give no feeds id for what You ask.
Better where you go to xbmc.org and ask the deveöoper from this addon that he can help.
Or you access this what you want over the Youtube channel from GameTrailers.com .
Many can you here found declared as show or playlist.
Regards Jan
-
- Posts: 155
- Joined: Sat May 18, 2013 5:12 pm
- Has thanked: 21 times
- Been thanked: 4 times
Re: Update GameTrailers plugin
Yeah i watch Popfiction over youtube, but a lot of the content goes to gametrailers.com for a week or two before they are released on youtube.
- Dan Dar3
- Posts: 1176
- Joined: Sun Jul 08, 2012 4:09 pm
- Has thanked: 273 times
- Been thanked: 257 times
- Contact:
Re: Update GameTrailers plugin
@ captainsensation
Is there a developer name / email address in default.py?
Is there a developer name / email address in default.py?
- App(s): XBMC4Xbox Remote for Android | Plugin(s): XBMC4Xbox Installer
- Please donate to XBMC4Xbox project to keep it going, every little helps!
- Join us on TeamSpeak
-
- Posts: 155
- Joined: Sat May 18, 2013 5:12 pm
- Has thanked: 21 times
- Been thanked: 4 times
Re: Update GameTrailers plugin
yours...Dan Dar3 wrote:@ captainsensation
Is there a developer name / email address in default.py?
GameTrailers - XBMC video plugin
# http://www.gametrailers.com
#
# Version 2.4
#
# Coding by Dan Dar3
# http://dandar3.blogspot.com
#
#
# Credits:
# * GameTrailers.com [http://www.gametrailers.com]
# * Team XBMC4Xbox @ XBMC4Xbox.org [http://xbmc4xbox.org/]
# * Leonard Richardson <leonardr@segfault.org> - BeautifulSoup 3.0.7a [http://www.crummy.com/software/BeautifulSoup/]
# * Eric Lawrence <e_lawrence@hotmail.com> - Fiddler Web Debugger [http://www.fiddler2.com]
#
#
# Constants
#
__plugin__ = "GameTrailers"
__author__ = "Dan Dar3"
__url__ = "http://dandar3.blogspot.com"
__date__ = "25 August 2012"
__version__ = "2.4"
#
-
- Posts: 1028
- Joined: Wed Jul 04, 2012 8:01 am
- Has thanked: 1 time
- Been thanked: 148 times
Re: Update GameTrailers plugin
sorry i mean that last main-xbmc addon (its on the main repo).
And its not from DanDar
And its not from DanDar
-
- Posts: 155
- Joined: Sat May 18, 2013 5:12 pm
- Has thanked: 21 times
- Been thanked: 4 times
Re: Update GameTrailers plugin
well i figured that one wouldnt work and when i tested it it did not. I am speaking of the dan dar3 plugin that works. It has a few shows, it could use a few more. I saw some string Ids listed and i needed the others to add more shows for them. I got pop fiction displayed but i cant pull up the videos without the proper string id.skatulskijean wrote:sorry i mean that last main-xbmc addon (its on the main repo).
And its not from DanDar
-
- Posts: 1028
- Joined: Wed Jul 04, 2012 8:01 am
- Has thanked: 1 time
- Been thanked: 148 times
Re: Update GameTrailers plugin
Oh sorry. The last working now Main xbmc addon is an xbmcswift addon and works on an old build , for example, my Jan'sxbmc4xbox but not on the newer more !
-
- Posts: 155
- Joined: Sat May 18, 2013 5:12 pm
- Has thanked: 21 times
- Been thanked: 4 times
Re: Update GameTrailers plugin
no worries, so how can we edit this and add more shows?skatulskijean wrote:Oh sorry. The last working now Main xbmc addon is an xbmcswift addon and works on an old build , for example, my Jan'sxbmc4xbox but not on the newer more !
-
- Posts: 1028
- Joined: Wed Jul 04, 2012 8:01 am
- Has thanked: 1 time
- Been thanked: 148 times
Re: Update GameTrailers plugin
please give a download link for the 2.4 version i have only found the Version 1.3 from DanDar's Plugin!
Regards Jan
Regards Jan
-
- Posts: 155
- Joined: Sat May 18, 2013 5:12 pm
- Has thanked: 21 times
- Been thanked: 4 times
Re: Update GameTrailers plugin
It is the same, the default.py file says 2.4 but it is the 1.3 version i am using.skatulskijean wrote:please give a download link for the 2.4 version i have only found the Version 1.3 from DanDar's Plugin!
Regards Jan
- Dan Dar3
- Posts: 1176
- Joined: Sun Jul 08, 2012 4:09 pm
- Has thanked: 273 times
- Been thanked: 257 times
- Contact:
Re: Update GameTrailers plugin
Will have a look when I come back home - if you want me to have a look and help you continue, send me what you done as a zip by email (dan.dar33 at gmail.com).
The sources are available here:
https://code.google.com/p/xbmc4xbox-add ... meTrailers
The sources are available here:
https://code.google.com/p/xbmc4xbox-add ... meTrailers
- App(s): XBMC4Xbox Remote for Android | Plugin(s): XBMC4Xbox Installer
- Please donate to XBMC4Xbox project to keep it going, every little helps!
- Join us on TeamSpeak
-
- Posts: 155
- Joined: Sat May 18, 2013 5:12 pm
- Has thanked: 21 times
- Been thanked: 4 times
Re: Update GameTrailers plugin
I deleted my progress after reading Jan's postDan Dar3 wrote:Will have a look when I come back home - if you want me to have a look and help you continue, send me what you done as a zip by email (dan.dar33 at gmail.com).
The sources are available here:
https://code.google.com/p/xbmc4xbox-add ... meTrailers
I simply just wanted to add some more show selections to the list. Mainly pop fiction and whatever else you want to add would be awesome.
-
- Posts: 1028
- Joined: Wed Jul 04, 2012 8:01 am
- Has thanked: 1 time
- Been thanked: 148 times
Re: Update GameTrailers plugin
This is the search Key for Videos:
You can search by most_recent or most_viewed
http://www.gametrailers.com/feeds/searc ... &keywords=
http://www.gametrailers.com/feeds/searc ... &keywords=
This is the search Key for Pach-Attack as example_
http://www.gametrailers.com/feeds/searc ... ach-Attack
When you Look on the Page Source your find for any video a class video information:
as example
class="video_information" id="frag_pa6wrc" data-contentid="mgid:arc:video:gametrailers.com:2dff7036-74f6-4535-a363-586dc14eeb56">
You want the data-contentid:
that is on the example 'mgid:arc:video:gametrailers.com:2dff7036-74f6-4535-a363-586dc14eeb56'
ok next all videos have the same base this is 'http://www.gametrailers.com/feeds/mediagen/?uri='
base+data-contentid= http://www.gametrailers.com/feeds/media ... 6dc14eeb56
when you this open on the Browser you have the different Videoqualität direct LinKs as example here:
rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_384x216_400_m30.mp4 rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_512x288_750_m30.mp4 rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_640x360_1200_m30.mp4 rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_768x432_1700_m30.mp4 rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_960x540_2200_m31.mp4 rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_1280x720_3500_h32.mp4
I think i make a new addon for this gametrailer com on the next time!
Regards Jan
You can search by most_recent or most_viewed
http://www.gametrailers.com/feeds/searc ... &keywords=
http://www.gametrailers.com/feeds/searc ... &keywords=
This is the search Key for Pach-Attack as example_
http://www.gametrailers.com/feeds/searc ... ach-Attack
When you Look on the Page Source your find for any video a class video information:
as example
class="video_information" id="frag_pa6wrc" data-contentid="mgid:arc:video:gametrailers.com:2dff7036-74f6-4535-a363-586dc14eeb56">
You want the data-contentid:
that is on the example 'mgid:arc:video:gametrailers.com:2dff7036-74f6-4535-a363-586dc14eeb56'
ok next all videos have the same base this is 'http://www.gametrailers.com/feeds/mediagen/?uri='
base+data-contentid= http://www.gametrailers.com/feeds/media ... 6dc14eeb56
when you this open on the Browser you have the different Videoqualität direct LinKs as example here:
rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_384x216_400_m30.mp4 rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_512x288_750_m30.mp4 rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_640x360_1200_m30.mp4 rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_768x432_1700_m30.mp4 rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_960x540_2200_m31.mp4 rtmpe://cp152939.edgefcs.net/ondemand/mtvnorigin/gsp.gtcomstor/media/videos_root/games/2013/08_aug_2013/aug_21/gt_pachattack_activisionstockreport_em_8-22_1280x720_3500_h32.mp4
I think i make a new addon for this gametrailer com on the next time!
Regards Jan
Last edited by skatulskijean on Mon Sep 09, 2013 11:40 am, edited 3 times in total.
-
- Posts: 1028
- Joined: Wed Jul 04, 2012 8:01 am
- Has thanked: 1 time
- Been thanked: 148 times
Re: Update GameTrailers plugin
simple example with urllib and re:
Code: Select all
import urllib2
import re
base='http://www.gametrailers.com/feeds/mediagen/?uri='
url='http://www.gametrailers.com/feeds/search/child/c9c01382-1f7c-4a3a-b68f-2e5ecc67fdd3/?sortBy=most_recent&tabName=videos&keywords=Pach-Attack'
content=urllib2.urlopen(url).read()
match=re.compile('<div class="video_information" id=".*?" data-contentId="(.*?)".*?<meta itemprop="name" content="(.*?)".*?itemprop="thumbnailUrl" content="(.*?)\?.*?itemprop="description" content="(.*?)"',re.DOTALL).findall(content)
for url,title,thumb,desc in match:
url=base+url
content=urllib2.urlopen(url).read()
match=re.compile('type="video/mp4" bitrate="400">.*?<src>(.*?)</src>',re.DOTALL).findall(content)
url=match[0]
print title
print thumb
print desc
print url
print#