[RELEASE] myTV - TV Guide Script (with pluginsnew script) - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] myTV - TV Guide Script (with pluginsnew script) (/showthread.php?tid=12895)
- nioc_bertheloneum - 2006-04-08 17:30
ok, thank you for your help! the modification with "dialog-panel2.png" works well, thank you for you script majortom!
it works now but i don't understand why!!!
as i explained in my first post, i found the image "dialog-invite.png" and modified mytv.py to find it. in fact, i put the image "dialog-invite.png" in the directory "system" and, in mytv.py, i modified:
Quote:panel_filename = "dialog-invite.png" # from xbmc skin 512x300by
Quote:panel_filename = dir_home + '\\' + dir_system + '\\' +"dialog-invite.png"
for the file "mytvlibrary.py", you use the same image. if this image is in the same path, why the program doesn't find it? if i want to use this image, how can i modify your script?
ps: here the "dialog-invite.png", i used:
- MajorTom - 2006-04-08 19:27
as far as i know mytv uses the files from \skin\project mayhem iii\media\...
it used to call up the dialog-invite.png but as this is no longer in current builds the script needed to be altered to call an equivalent png, in this case dialog-panel2.png fits the bill...
so i just went through mytv.py and mytvlibrary.py as bigbellybilly suggested and changed references from dialog-invite to dialog-panel2.
hope that helps...
- nioc_bertheloneum - 2006-04-08 20:25
ok, thank you!
i understood this, but if i want a specific file in the directory "system" of "mytv" like "background.png", "clock.png", ... how can i do it? then, if in a future release of xbmc, they change again the default skin, we don't have this problem.
- BigBellyBilly - 2006-04-08 21:36
controlimage and other functions check within the stored xbmc media files for the filenames, which is why they dont have any path to them. if its not found it wont find it in current folder either as they have to be full path + filename.
mytv.py and mytylibrary.py each refer to their own filenames, so both files needed to be amended.
i've modified the next release to include a panel graphic so the next time xbmc media files change it wont affect the script. it'll also makes it easier to change the graphic to whatever you like.
- nioc_bertheloneum - 2006-04-09 17:53
ok thank you very much for your help!!
i'll waiting your next release!
a last thing, it's about the tv program of brazil, could you use the site of tv guia? in this site, we have more information on programs than on tudonoar.
- BigBellyBilly - 2006-04-09 20:25
if you can discover the urls that fetch a full days data, i'll give it a go.
just shows 2hours at a time. there might be an additional url param that indicates time period to show ?
update: i think i've found it.
will look into further when i can. (how can i ignore a language were 'sex' is abreviation for friday !
- nioc_bertheloneum - 2006-04-10 14:15
following what you did for brazil, i find these information
and for the format of the date, i think you need to modify this
Quote:urldate = time.strftime("%d/%m/%y", formattime)by
Quote:urldate = time.strftime("%y-%m-%d", formattime)
and for detailed information on a program, the adress is: http://www.tvguia.com.br/site/programa.asp?id=260570
but i don't find an adress with all programs for all chanel for one day.
for the name of the day, it's simple:
- seg : segunda-feira = monday
- ter : terça-feira = tuesday
- qua : quarta-feira = wednesday
- qui : quinta-feira = thursday
- sex : sexta-feira = friday
- sab : sábado = saturday
- dom : domingo = sunday
and a last thing, is it possible to use an additive file with language to translate your script in different language (one file by language)? i'm sure the members of this forum will help you to do these translation.
- BigBellyBilly - 2006-04-10 16:09
thanks for the extra info. i've made a start on using the new site for you.
translations: your not the first to ask for this, but unfortunatly it wasnt coded with language translation strings in mind, which means it'd would be quite a job to do. not impossible.
i'm assuming your referring to all menus, dialogs etc ?
first i'd would have to identify all english strings then post them up for translation...
- Tree_Fort - 2006-04-11 00:45
bigbellybilly, would you be so kind as to repost your zap2it datasource file? the link has expired, and i can't find any copies floating around on the internet. thanks!
- BigBellyBilly - 2006-04-11 01:02
i'm hoping the next release (with zap2it back in) wont be long off (not many changes/fixes) but, just waiting to finish work on dreambox before releasing.