proof of concept: themes per series - 2008/09/11 17:46I have had a quick play with a per series theming as some of the images on www.thetvdb.com could be good. Here is a bit of proof of concept code. I don't understand the menu code so I have not touched it so the menu looks awful however.
The image is stored as series/banner/background*.jpg and there are additional files I have included the ones used for that grab.
-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log
| | The administrator has disabled public write access.
Zz9pzza
User
Posts: 154
Re: proof of concept: themes per series - 2008/09/11 17:53In the perfect world we could do a search for fan art a www.thetvdb.com specifing a safe area, the system would return us the image and the set of colours to use either ot stand out or to blend in. I would be happy to ask over there -- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 1504
Re: proof of concept: themes per series - 2008/09/11 18:26It would be fairly trivial to download the fanart with the parser, all the details are in banners.xml. There can be quite a few fanarts though and all hi-res so not very practical to automatically download them all.
There are also thumbnails which we could use in the configuration to allow the user to select which are to be downloaded for each series (sounds like alot of work). The xml also contains a list of colours that we could use for the menu.Player : Netgear EVA700 & Popcorn A-100 (081224) Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN) Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
| | The administrator has disabled public write access.
Zz9pzza
User
Posts: 154
Re: proof of concept: themes per series - 2008/09/11 18:34Pernod wrote: There are also thumbnails which we could use in the configuration to allow the user to select which are to be downloaded for each series (sounds like alot of work). The xml also contains a list of colours that we could use for the menu.
Do you think its worth trying to code up ? I would be willing to try and investigate.
If we built a background selector, do you think its worth trying to make it work form the TV as you could claim its configuration and therefore we could do it from a real computer browser which could make the experience more pleasant.-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 1504
Re: proof of concept: themes per series - 2008/09/11 18:51Do you think its worth trying to code up ? I would be willing to try and investigate. Go for it
Selecting backgrounds to download from the TV would complicate the interface too much, but you could assign a quick key to step through each background already downloaded.
1. The parser should be updated to download all fanart thumbnails.
2. New configuration page 'TV Backgrounds' would have dropdown selection of TV series in database. Selecting will display fanart thumbnails for series and allow selection.
3. Selected fanart will be downloaded to cache folder, then copied to the existing banners folders for the series.
4. Add 'Change Background' quick key to TV pages.
Sounds fairly straight forward
NigelPlayer : Netgear EVA700 & Popcorn A-100 (081224) Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN) Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 1504
Re: proof of concept: themes per series - 2008/10/12 08:13Any progress with this?
Once themoviedb.org gets itself more established we could do the same for movies.Player : Netgear EVA700 & Popcorn A-100 (081224) Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN) Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
| | The administrator has disabled public write access.
Zz9pzza
User
Posts: 154
Re: proof of concept: themes per series - 2008/10/12 14:32Pernod wrote: Do you think its worth trying to code up ? I would be willing to try and investigate. Go for it
Selecting backgrounds to download from the TV would complicate the interface too much, but you could assign a quick key to step through each background already downloaded.
1. The parser should be updated to download all fanart thumbnails. [/qoute]Done[quoute]
2. New configuration page 'TV Backgrounds' would have dropdown selection of TV series in database. Selecting will display fanart thumbnails for series and allow selection.
[/qoute]Done, and all nice and ajax too [quoute]
3. Selected fanart will be downloaded to cache folder, then copied to the existing banners folders for the series. [/qoute]Done[quoute]
4. Add 'Change Background' quick key to TV pages. [/qoute]Not yet done[quoute]
Sounds fairly straight forward
Nigel
Doing the support on the buffalo NAS I ended up dropping my database so I need to recreate the table and do the change background bit ( I assume the last chosen will be used until next selected ). I will hope to post a branched of release from the last stable release in the next 2 weeks ?-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 1504
Re: proof of concept: themes per series - 2008/10/12 15:01Ok, no rush, just wanted to know that it was still happening.Player : Netgear EVA700 & Popcorn A-100 (081224) Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN) Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
| | The administrator has disabled public write access.
Zz9pzza
User
Posts: 154
Re: proof of concept: themes per series - 2008/10/12 15:13Do you want it when I think I have finished with it or when I think it might be first useful. Its going to be quiet a large patch for you to integrate.
ps, I have recreated the database table so I can continue ( I need a poke sometimes ).-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 1504
Re: proof of concept: themes per series - 2008/10/12 16:53Just send the complete files when it's finished Player : Netgear EVA700 & Popcorn A-100 (081224) Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN) Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
| | The administrator has disabled public write access.
Zz9pzza
User
Posts: 154
Re: proof of concept: themes per series - 2008/11/11 04:36Pernod wrote: Just send the complete files when it's finished
I got this nearly to a state where its useful and functional, but not as wonderful as I know it could be. However I have become more busy at work until February ish so shall I hand it over as is.-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 1504
Re: proof of concept: themes per series - 2008/11/11 05:56Ok, either post or email your changed files and I'll merge with mine.Player : Netgear EVA700 & Popcorn A-100 (081224) Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN) Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
| | The administrator has disabled public write access.
Zz9pzza
User
Posts: 154
Re: proof of concept: themes per series - 2008/12/02 15:37Heres the change to the database.
more coming tonight I hope.
Code:
-- MySQL dump 10.11
--
-- Host: localhost Database: swiss
-- ------------------------------------------------------
-- Server version 5.0.32-Debian_7etch8-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `tv_theme`
--
DROP TABLE IF EXISTS `tv_theme`;
CREATE TABLE `tv_theme` (
`programme` text NOT NULL,
`file_id` int(11) NOT NULL,
`size_x` int(11) NOT NULL,
`size_y` int(11) NOT NULL,
`type` text NOT NULL,
`colours` text NOT NULL,
`ThumbnailPath` text NOT NULL,
`BannerURL` text NOT NULL,
`VignetteURL` text NOT NULL,
`flip_image` tinyint(1) NOT NULL default '0',
`use_episode_selector` tinyint(1) NOT NULL default '0',
`show_banner` tinyint(4) NOT NULL default '0',
`show_season_image` tinyint(4) NOT NULL default '0',
`use_episode_guide` tinyint(1) NOT NULL default '0',
`downloaded_path` text,
`displayed` int(11) NOT NULL default '0',
`processed_image` text,
PRIMARY KEY (`file_id`),
KEY `programme` (`programme`(40)),
KEY `type` (`type`(20),`use_episode_selector`,`use_episode_guide`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log
| | The administrator has disabled public write access.
I am afraid its a zip file with everything in it.-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log
| | The administrator has disabled public write access.
Stu2j
User
Posts: 1380
Re: proof of concept: themes per series - 2008/12/02 18:43So basically, this lets you associate fan art to a tv series in the config which will then be used as a background for the series?Showcenters 1000g/200/250HD Popcorn Hour A-100 Netgear HDX101 Powerline Adapters Windows XP Simese 2.07 running latest SVN NAS Server IBM NetVista 900Mhz/256RAM
| | The administrator has disabled public write access.
Zz9pzza
User
Posts: 154
Re: proof of concept: themes per series - 2008/12/03 01:50Stu2j wrote: So basically, this lets you associate fan art to a tv series in the config which will then be used as a background for the series?
Yes. I would have liked to have got the controlling of text colours done and the positioning of the menu but real work is busy right now.-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 1504
Re: proof of concept: themes per series - 2008/12/03 05:52Thanks
I'll try to get this integrated in the next week or so but the video you posted looks very promising.
NigelPlayer : Netgear EVA700 & Popcorn A-100 (081224) Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN) Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
| | The administrator has disabled public write access.
Zz9pzza
User
Posts: 154
Re: proof of concept: themes per series - 2008/12/03 06:08Pernod wrote: Thanks
I'll try to get this integrated in the next week or so but the video you posted looks very promising.
Thanks for that, This is my first attack of javascript so
I would say there is a lot more I think we could do in the future, however at this instant i am busy This is functional and I have been running it at home for the last month or so and it hasn't broken anything for me. However I haven't checked with Siamese as a server. I haven't though about internationalization. I have ensured that its as fast as I can manage with a very large library.
Things to do:
The episode screen Menu Items. Choosing the colours Vinaigrettes Removing fan art when its unselected ?
But I think this code is useful and ok
I would be happier to do more development on it when I have time and when its in the development stream.-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log
| | The administrator has disabled public write access.
Zz9pzza
User
Posts: 154
Re: proof of concept: themes per series - 2009/01/02 17:04Pernod wrote: Thanks
I'll try to get this integrated in the next week or so but the video you posted looks very promising.
Nigel
Any thoughts Nigel, I know its a really large change.....-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 1504
Re: proof of concept: themes per series - 2009/01/03 09:21Sorry, not even looked at it yet. I'm moving house in a few days so could be another few weeks after the move before I get back into things.Player : Netgear EVA700 & Popcorn A-100 (081224) Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN) Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
| | The administrator has disabled public write access.