XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > Supplemental Tools for XBMC

Supplemental Tools for XBMC Third-party helper software applications and utilities for XBMC end-users.
This include media managers as well as other similar non-XBMC tools.
Please note that these are not supported or endorsed by Team-XBMC.

Reply
 
Thread Tools Search this Thread Display Modes
Old 2008-11-14, 01:11   #1
sw1tch
Member
 
Join Date: Jul 2007
Posts: 53
sw1tch is on a distinguished road
Default Offline Creator - Automated dummy content script/program

Something that I hope should be useful to anyone with lots of offline content such as DVD's. This will automate the process of creating dummy files used for XBMC library scanning and create avi's that tell you what disc the content is on when you play that library item.

It's only a simply console application, no fancy gui.

Features:
- Loads a list of Movies and Disc Numbers from a .cvs file
- Creates dummy folders (optional)
- Fetches the url for the top imdb result and creates and .nfo file for easy XBMC lookup (optional)
- Fetches the year from imdb (optional)
- Creates an avi file containing the text "Please Insert Disc X" where X is the Disc Number for that Film.



Download Offline Creator v1.2(WINDOWS)

Download Offline Creator v1.3(Linux/OSX)

Quote:
Changelog
================================================
- 1.3
Fixed: Running under linux would not create the video (no such file or directory error)
- 1.2
Added an option for using a background image instead of just black
Added an option for using a custom font - be aware the text may not center properly
- 1.1
Added the ability to change the "Please Insert Disc" text to custom text in settings.ini
To use,
1) Edit library.cvs in excel/notepad to include your movie names, and disc ids(optional)
2) Run the program
3) Scan the Offline folder in XBMC
See the readme.txt for information on usage.

For the next version I will look into fetching posters and adding a "DVD" watermark, and possibly allowing custom backgrounds for the dummy avi files.

Last edited by sw1tch; 2009-01-25 at 03:11.
sw1tch is offline   Reply With Quote
Old 2008-11-22, 05:04   #2
wyild1
Senior Member
 
wyild1's Avatar
 
Join Date: Jan 2007
Posts: 105
wyild1 is on a distinguished road
Default

Looks promising! Testing this out and i have run into a bit of a program. I created the csv file with about 30 movies but when i run the script i get:
Code:
wyild1@BITCHTITS:~/offline-creator$ python offlinecreator.py
# - Skipped Creating Image -- Moviez5.png
# - Creating Video -- Moviez5.avi
Traceback (most recent call last):
  File "offlinecreator.py", line 62, in <module>
    vid_maker._create_vid(i)
  File "/home/wyild1/offline-creator/lib/video_maker.py", line 28, in _create_vid
    self._run_command(command)
  File "/home/wyild1/offline-creator/lib/video_maker.py", line 49, in _run_command
    startupinfo=stup, creationflags=creationflags)
  File "/usr/lib/python2.5/subprocess.py", line 594, in __init__
    errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Any thoughts?
wyild1 is offline   Reply With Quote
Old 2009-01-01, 23:54   #3
desertblade
Junior Member
 
Join Date: Nov 2008
Posts: 5
desertblade is on a distinguished road
Default

This a great idea! I would like to see some of the suggested ideas but what a great start. I just need to add all my movies to the collection.

wyild1 I too got this error on Linux, it is having issues creating the movie folder names, I could dig into why, but my Python is not very good.

I tried it out on windows with the exe and it works great, so for now my workaround is using the VM of windows that I have.
desertblade is offline   Reply With Quote
Old 2009-01-02, 01:08   #4
stacked
Skilled Python Coder
 
stacked's Avatar
 
Join Date: Jun 2007
Posts: 528
stacked is on a distinguished road
Default

Thank you so much! I've needed something like this. It works perfectly with Ant Movie Catalog. I just export my movies list to csv with the title and the disc number, then let this program do the magic. I already have nfo files with the proper imdb urls but I like that you have an imdb url scraper built in.

My only request is that you allow the user to change the text "Please Insert Disc" in the settings.ini. And also allow the user to choose a delimiter instead of comma. I ran into problems when movie titles had commas like "I, Robot" or "Me, Myself & Irene".

Thanks again!

Last edited by stacked; 2009-01-02 at 05:01.
stacked is offline   Reply With Quote
Old 2009-01-03, 00:49   #5
xbmcjb
Junior Member
 
Join Date: Mar 2008
Posts: 9
xbmcjb is on a distinguished road
Default

Hi,

Thanks ! Works great !
But if you try to use letters for your disc ids, the app put a cap for the first letter and don't respect the case of the text in the "library.csv".

It should not be too difficult to fix.

Thanks in advance
xbmcjb is offline   Reply With Quote
Old 2009-01-03, 17:56   #6
sw1tch
Member
 
Join Date: Jul 2007
Posts: 53
sw1tch is on a distinguished road
Default

Quote:
Originally Posted by xbmcjb View Post
Hi,

Thanks ! Works great !
But if you try to use letters for your disc ids, the app put a cap for the first letter and don't respect the case of the text in the "library.csv".

It should not be too difficult to fix.

Thanks in advance
Open up settings.ini in wordpad and change
Code:
title_names = True
to
Code:
title_names = False


Quote:
Originally Posted by wyild1 View Post
Looks promising! Testing this out and i have run into a bit of a program. I created the csv file with about 30 movies but when i run the script i get:
Code:
wyild1@BITCHTITS:~/offline-creator$ python offlinecreator.py
# - Skipped Creating Image -- Moviez5.png
# - Creating Video -- Moviez5.avi
Traceback (most recent call last):
  File "offlinecreator.py", line 62, in <module>
    vid_maker._create_vid(i)
  File "/home/wyild1/offline-creator/lib/video_maker.py", line 28, in _create_vid
    self._run_command(command)
  File "/home/wyild1/offline-creator/lib/video_maker.py", line 49, in _run_command
    startupinfo=stup, creationflags=creationflags)
  File "/usr/lib/python2.5/subprocess.py", line 594, in __init__
    errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Any thoughts?
Have you installed mencoder? See the readme, you may need to specify the location of mencoder in the ini

Quote:
Originally Posted by stacked View Post
Thank you so much! I've needed something like this. It works perfectly with Ant Movie Catalog. I just export my movies list to csv with the title and the disc number, then let this program do the magic. I already have nfo files with the proper imdb urls but I like that you have an imdb url scraper built in.

My only request is that you allow the user to change the text "Please Insert Disc" in the settings.ini. And also allow the user to choose a delimiter instead of comma. I ran into problems when movie titles had commas like "I, Robot" or "Me, Myself & Irene".

Thanks again!
CSV files require items with commas in to be quoted such as
Code:
The Matrix, 1
"I, Robot", 2
If Ant Movie Catalog is not exporting the csv this way, then you will need to take it up with them.

As for the custom "Please Insert Disc", I have just added the option into settings.ini in the latest version, see the original post.
Quote:
Changelog
================================================
- 1.1
Added the ability to change the "Please Insert Disc" text to custom text in settings.ini
sw1tch is offline   Reply With Quote
Old 2009-01-03, 21:18   #7
stacked
Skilled Python Coder
 
stacked's Avatar
 
Join Date: Jun 2007
Posts: 528
stacked is on a distinguished road
Default

Quote:
Originally Posted by sw1tch View Post

CSV files require items with commas in to be quoted such as
Code:
The Matrix, 1
"I, Robot", 2
If Ant Movie Catalog is not exporting the csv this way, then you will need to take it up with them.
Oh, I forgot to include the quotes on the export settings.

Thanks for the update too.
stacked is offline   Reply With Quote
Old 2009-01-03, 23:39   #8
xbmcjb
Junior Member
 
Join Date: Mar 2008
Posts: 9
xbmcjb is on a distinguished road
Default

Some other suggestions :

- You could add an item in settings.ini to change the font
Code:
font = helvetica.ttf
(the workaround for now is to rename an other font to ARIAL.TTF and put it instead of the default one)

- Is it possible to add a background image instead of black ?

Anyway, these are details. Thanks for the update.
xbmcjb is offline   Reply With Quote
Old 2009-01-04, 02:05   #9
Gamester17
Team-XBMC Project Manager
 
Gamester17's Avatar
 
Join Date: Sep 2003
Location: Sweden
Posts: 10,608
Gamester17 will become famous soon enough
Lightbulb

@sw1tch, could you please through in an option to create the dummy files/folders structure without the NFO files?

Dummy file/folder structures are great for testing XBMC on different platforms, and to show of to your friends on their own computers, ...but I do not want the NFO files.

__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Gamester17 is offline   Reply With Quote
Old 2009-01-04, 11:47   #10
blittan
Team-XBMC Handyman
 
blittan's Avatar
 
Join Date: Jun 2004
Location: Sweden
Posts: 1,604
blittan is on a distinguished road
Send a message via MSN to blittan
Default

@Gamester17, simply do a search for *.nfo in the dummyfolder then
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


blittan is offline   Reply With Quote
Reply

Bookmarks

Tags
helper, media manager, tool


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:21.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project