Author |
Topic |
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 02 Jan 2010 : 18:21:32
|
I changed the thetvdb.com script so it imports all posters and the new fanart. But it doesn't work. It downloads the fanart and saves it to the database folder, but it's not shown/added to the database.
Is it a Bug or does it not work with TVShows? Or something wrong with my changes to the script?
Here is the changed script: http://www.mediafire.com/download.php?vwowjjcyy0y |
|
Alessio Viti
Forum Admin
Italy
9171 Posts |
|
Alessio Viti
Forum Admin
Italy
9171 Posts |
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 04 Jan 2010 : 16:55:52
|
Thank you.
I modded your DefaultHTMLCard_with_Fanart.html Card a bit. Since Fanart for TV Shows are big, i edited so it fits to the width of the Page, it will be hidden if no Fanart is in the database. The Moviecover and Backcover i put back down, the Covers will also automatically hidden if there are none. (No more error messages and empty windows when clicking an white.gif Cover-Placeholder)
Is there a Variable ( like _IS_TVSHOW_ ) in Moviecards for the Status of the 'This is a TVShow' Field in the database?
I would like to have it, so i can hide the Episodes Block on the right side of the Moviecard when a Movie is being displayed.
Here is my DefaultHTMLCard_with_Fanart(Mod): http://www.mediafire.com/download.php?gynagydtlkm |
|
|
JDommi
Administrator
Germany
4645 Posts |
Posted - 05 Jan 2010 : 10:12:37
|
Hi Prinz ;) Good work! As I have already sent a modified DefaultHTMLCard to Alessio I wanna ask you to merge my changes into yours. The changes are: 1. tagline placed in an div so taglinecut isn't needed anymore -inserted <div style="position:absolute;left:75px;top:32px;height:14px;width:97%; overflow-x:hidden; overflow-y:auto"> <strong><font size="1" color="#FFFF00">_MOVIE_TAGLINE_</font></strong> -inserted </div>
2. added jump marks for some sections (the included download.png has to be placed in folder Symbols)
You can download the card on http://mitglied.lycos.de/jkdommi/xmm/DefaultHTMLCard.rar Please copy the link and paste it in your browser. lycos seems to have changed something with their redirection *wonder* |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
Edited by - JDommi on 05 Jan 2010 10:16:52 |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 05 Jan 2010 : 15:44:58
|
Hi JDommi
I merge them. I put two layouts in the zip, one with the Fanart at the top, the other with Fanart at the Bottom.
I made additional changes:
1. Border around the Fanart 2. Play Movie / Play Movie Icons now will also be hidden if there is no Trailer/Movie in the Database
I put both Layouts in the zip: (removed because of error) |
Edited by - Prinz on 05 Jan 2010 15:58:31 |
|
|
Prinz
Senior Member
Germany
1522 Posts |
|
JDommi
Administrator
Germany
4645 Posts |
Posted - 05 Jan 2010 : 16:57:27
|
Well *lol* that was wished ;) That way you are able to see whole tagline without "destroying" the main title bar... |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 05 Jan 2010 : 17:25:44
|
The Problem was that sometimes characters were cutoff at the bottom, not even one line were visible.
Scrollbar is still there when necessary. |
|
|
JDommi
Administrator
Germany
4645 Posts |
Posted - 05 Jan 2010 : 18:03:18
|
Ok, for me were up to 3 lines correctly visible. Maybe it is because I tried to surpress the top part of a following line. But the result counts ;) Thx again, Prinz. Btw. the variable _IS_TVSHOW_ I had asked for a few weeks ago, too (when I added the foldable parts). But Ale was a little bit too busy that time. He just has to be remembered... |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Alessio Viti
Forum Admin
Italy
9171 Posts |
|
JDommi
Administrator
Germany
4645 Posts |
Posted - 06 Jan 2010 : 09:45:22
|
I think 0/1 or yes/no are best. Don't even know if javascript accepts simple boolean true/false
|
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 06 Jan 2010 : 10:22:21
|
0/1 would be best.
If you like you still can use 0/1 as a boolean variable since javascript interprets 0 (empty variable and the words: null, false) as false, everything else as true. |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 06 Jan 2010 : 13:58:16
|
Here is an update for the TheTVDB.COM Script.
New Advanced Options (Red):
[Serie Posters] 0=Do not take Posters 1=Take only First Poster 2=Take ALL Posters
[FanArt] 0=Do not Take FanArt 1=Take only First FanArt 2=Take ALL FanArt
Other Changes: Open WebSlots for Posters and Fanart only when necessary (Option activated)
http://www.mediafire.com/download.php?ngmfmdx1dnj |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 06 Jan 2010 : 15:22:36
|
One Question:
#SUBSTITUTEWORD# doesn't seams to bee working correctly
For example:
Import: The Listener with the TheTVDB.Com Script
The Actress Mylène Dinh-Robic is imported as Mylène Dinh-Robic
In #SUBSTITUTETAGS# is defined: #SUBSTITUTEWORD#=è=è
So it should substitute it, but it doesn't. Or is there some function that must be executed for the conversion |
|
|
Alessio Viti
Forum Admin
Italy
9171 Posts |
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 07 Jan 2010 : 13:10:54
|
#STARTSUBSTITUTEWORD#
That command isn't used in any script whatsoever. It is not documented so i think nobody knows of it.
But other substitutions work without it.
Can't test it at the moment thetvdb.com is offline again. |
Edited by - Prinz on 07 Jan 2010 13:11:29 |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 07 Jan 2010 : 14:10:30
|
Ohh, i see you meant: #STARTSUBSTITUTETAGS#
I merge your addition #STARTSUBSTITUTETAGS# with my modifications (Additional Options, see Posting above): http://www.mediafire.com/download.php?mmzmnwtmmwj
Can't test it until thetvdb.com is online.
Edit: Tested and working. |
Edited by - Prinz on 07 Jan 2010 19:07:04 |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 07 Jan 2010 : 22:59:02
|
I found a another Bug in the Script. To fix it properly and for another change i would need a search and replace function for a STRING variable.
Is there such a function? Not a global function like #SUBSTITUTEWORD#, #STARTSUBSTITUTETAGS# |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 09 Jan 2010 : 00:35:11
|
Thx for the _IS_TVSHOW_ variable. Modded my two Verisons with it. Episodes Block will only be shown if it is a TVSHOW.
Edit:
Made another modification. Bugfix for the Movie Specification. And added automatic change of the tile in TV Show Specification for TV Shows.
http://www.mediafire.com/download.php?m5zuyyig4zw |
Edited by - Prinz on 09 Jan 2010 00:51:03 |
|
|
JDommi
Administrator
Germany
4645 Posts |
Posted - 09 Jan 2010 : 00:54:21
|
Hi Prinz. Would be nice to send me your email adress... as you seem to be able to help me on 2 javascript problems ;)
|
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Topic |
|
|