NextPVR Forums

Full Version: new LogoDownload tool
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I spent the last few nights making a new utility to download and set up the logo files properly in bgpvr.. since none of the ones available on the wiki were to my liking. It'll use the latest version of XMLTV to download a stations xml file, then it'll step though all your channels looking through a folder of 2401 different logos looking for the best match.. This will match local abc channels to their local logo... yeah.

[SIZE="5"]Updated!![/SIZE][SIZE="4"] It should now be able to match a lot more channels, if you're upgrading, you need to replace everything.. since I renamed a bunch of the logos.[/SIZE]
I also split up Step1.bat, since that apparently caused Oz some problems

How to use it:
1. Download the files (28.3MB total):
Tool: http://www.box.net/public/79uuv4ho42
Logos: 1: http://www.box.net/public/c8gy7k8lkz 2: http://www.box.net/public/up4ujtz8ke 3: http://www.box.net/public/2j5kjeoyf8
It's split across 4 files because I am limited to a 10mb file at Box (thanks RedawgTS), If you don't have a program to open it, I suggest 7-Zip (http://www.7-zip.org)
The file is now always split into Logos and Tool Only, so nobody is forced to use the provided logos
2. Unzip the files somewhere so it's in its own folder (like LogoDownloader\unzipped here)
3. Go into the bin folder and run Step1.bat
This will ask you questions about your zap2it account, it's running through xmltv to get your channel list, this will create the "stations.xml"
4. Now, you need to run my comparison program. go into the explorer folder and drag "stations.xml" onto "renamer.exe"
This program creates the batch file copy.bat that'll copy the images out of Logos into Output. Make sure there is an Output folder, otherwise this will fail.
After this completes, it will show you a list of channels that it could not match. These are likely going to be local programming/community bulletin board channels.
5. copy.bat will copy and rename the correct logos from the logo directory into the folder Output\. The batch file WILL NOT WORK if there isn't an Output folder already created.
the logos now in Output are correctly formatted and ready to go into gbpvr.
6. for your convienance, I made the mover.exe program, that asks you where you installed gbpvr (just hit enter if you went with the default location).
this also creates a batch file that will automatically move the logos into gbpvr.
7. so run move.bat and all should be working!

I did my all at getting this thing to match up accurately.. It does my channel lineup here in University Park, PA correctly.
It probably won't work too well if you're anywhere other than the USA.
If you live in a location other than the USA, follow this guide to make your channels match.

If you get No US channels, you can get the ToolOnly file above
1. Make sure you're running FireFox and have the FlashGot extension installed.
2. go to http://www.getright.com/ and download the latest getright. Have no fear, GetRight is the best download manager available, it's 100% free, no spyware, viruses or adware.
3. open up the getright tray and go to View > Report Columns and check Type
4. in FireFox, right click anywhere and go to FlashGot Options, make sure that "Include images found in current page" and "GetRight" is checked
5. go to http://www.lyngsat-logo.com/
6. Choose LogoTypes by Country > TV from the top.
7. Find your country in the list.
8. Click on the first logo that pops up to go to a higher-resolution page-by-page listing of the logos
9. Highlight all the logos on the page, right click and go to "FlashGot Selection"
10. Tell it to put them in the Logos Directory of this tool
11. Repeat steps 9 and 10 for every page of logos (the trial version of GetRight limits you to having 500 items in your queue, so go do step 12 and 13 every few pages)
12. Open the GetRight Tray, click on the "Type" column to sort by type and remove every item that is not a jpg. (there will be 2 gifs and a ton of htmls)
13. Click the Automatic Downloading button and getright will download all the pictures in your queue
OPTIONAL: If you don't like the download windows, go to Options > Download Windows As > Hidden
Getright, for some reason, puts a txt with some information on the picture you downloaded where you put the picture, they arn't necessary, so you can go to the logos folder, sort it by type, and delete anything that isn't a jpg too.

If you had to change the name of a logo file so that it matches up correctly, post it up here and I'll fix it in the utillity.
you can add questions or comments etc, let me know how it works for you.

credits: I programmed the exes (they're gpl by the way, source is included), I used Louka Dlagnekov's findfile and wildcard libraries, tinyxml for parsing that xml file, dev-c++ for the coding, and http://www.satlogo.com for all the logos, and http://www.box.net for the hosting

finally, If I did something wrong, like putting this post in the wrong location or something, I appologize, I'm new here.
i want this program. Are you saying you have no where to post it?
http://box.net will give you 1GB free storage. You can ofcourse easliy share files.
haha thanks redawgts, I'll go give it a try

Download available! woo!
this didn't work at all for me. It couldn't find a logo for a single channel. Spike TV, History Channel, nothing. I'm in Arizona.

On a different note, the whole file is here: http://www.megaupload.com/?d=RXSGJQ9F sorry for all the ads.
humm..
go into the bin folder and try dragging the stations.xml file onto renamer.exe
then run copy.bat
then renamer
then move.bat

I had this problem when I was making that step1.bat, but I thought I figured out what was wrong and fixed it..
okay, it may have worked the first time, it got around 50%. It did get the history channel this time though, still not spike. I'll use the ones it got and the rest are done manually anyway Smile
That's odd, because we get spike over here too and it was able to match that one up, can you post the <channel id....> sections of that xml file?
Open it up in word pad and it's just the first several sections, The file is huge because it's has program listings and such.

oh, and if you still don't have a logo for one of your channels, you can look for it manually in the logos directory, their names are logical, disc for discovery etc
Scallopedllama,

out of interest did you try my tool, http://gbpvr.com/pmwiki/pmwiki.php/Utili...lLogoTool it downloads icons from http://www.lyngsat-logo.com/ automatically and attempts to match them against the channels in your GBPVR database. If CLT can't match then you can use a matching step within the wizard before you publish them....

I have two questions if I may

1) if you tried my tool, what did you not like about it...?
2) if you didn't feel free, to give it a looksee....
The text was too long for in the post and too big for an attachment so here's a link:
http://www.oztheory.com/channel_ids.txt
Pages: 1 2