Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Robert_M

Pages: [1]
1
Users / Re: Need testers - updated 2-18
« on: March 11, 2010, 11:03:09 am »
I have actually done something similar to what you're doing (I have a ruby script that automatically renames episodes downloaded to be in the same format). 

The way I did it was first I grab the series and episode marker from the episode.  If you did that and then assumed that everything that came before was the series that should work for a very high percentile of files (I don't think I've ever encountered anything it doesn't work for).  The only problematic files are the ones which use three digits to represent series and episode (I just wrote a special function called seperate to do this) and the ones that don't split into series and episode just use numbering.  With a bit of tweaking you should be able to deal with these cases as well (or at least have a reasonable guess).  I used the following regex's to rename the file - I think the ones at the bottom are just putting in uniform spacing but I didn't comment them so not so sure.... 

Code: [Select]
    filename = filename.gsub(/ S([0-9][0-9])E([0-9][0-9][ \.])/i, " \\1x\\2")
    filename = filename.gsub(/ S([0-9][0-9]) E([0-9][0-9][ \.])/i, " \\1x\\2")
    filename = filename.gsub(/ S([0-9])E([0-9][0-9][ \.])/i, " \\1x\\2")
    # Examples: 'S3E04' = '3x04', 'S07E05' = '7x05', 'S07E03-' = '7x03'

    filename = filename.gsub(/([\- ][0-9])x([0-9][\- \.])/i, "\\1x0\\2")
    # Examples: '3x4-' = '3x04', '6x8 ' = '6x08'


    filename = filename.gsub(/0([0-9]x[0-9][0-9])/i, "\\1")
    # Examples: '03x12' = '3x12', '01x03' = '1x03'

    filename = filename.gsub(/\s*\[([1-9]?[0-9]x[0-9][0-9])\]\s*/i, " \\1 ")
    # Examples: '  [14x34]  ' = ' 14x34 ' 'Stargate[10x23] ' = 'Stargate 10x23 '


    filename = filename.gsub(/([A-Z0-9])\s+([1-9]?[0-9]x[0-9][0-9])/i, "\\1 - \\2")

    filename = filename.gsub(/([1-9]?[0-9]x[0-9][0-9])\s+([A-Z0-9])/i, "\\1 - \\2")

    filename = filename.gsub(/\s*-\s*([1-9]?[0-9]x[0-9][0-9])/i, " - \\1")
    filename = filename.gsub(/([1-9]?[0-9]x[0-9][0-9])\s*-\s*/i, "\\1 - ")




2
Users / Re: Need testers - updated 2-18
« on: March 08, 2010, 05:06:56 pm »
Had a quick play:-

1) None of the pictures load for individual episodes.  Path for pictures is http://www.thetvdb.com/banners/_cache/

2) When I try and do a batch mode directory for "3rd Rock From The Sun" suggests show name is either "3rd rock from the" or "3rd".  When I do a batch mode directory for "Simpsons" suggests "simp".  It seems to be cutting off the last four characters (I assume it's removing an extension that isn't there). 

3) When doing batch mode, it doesn't cope very well with multiple copies of the same episode in the directory.  It correctly identifes "3rd Rock From The Sun - 4x20 - Alien Hunter.avi" as being season 4, ep 20 when selected in single file mode.  If doing batch on a directory with "3rd Rock From The Sun - 4x20 - Alien Hunter.avi" and ""3rd Rock From The Sun - 4x20.avi" however it states there are other files in the directory that it can't identify the season number of. 

3) If I search in single file mode for "Bananaman S1e1 - Bananaman Meets Dr Gloom.avi" it suggests as the first three show names "bananaman s1e1" (you should probably eliminate duplicates from the suggested show name list) and the last two as "bananaman".  It correctly identifies that it's season 1, episode 1 however.  Also, surely the top guessed show name should therefore be "bananaman" not "bananaman s1e1"

3
Users / Re: Teething issues
« on: January 26, 2010, 09:33:04 pm »
Hi Jimbodude,

Thanks for taking the time to answer my questions.  I've now sorted out some of my issues....

1) Web Admin --> Wizard --> Scenarios --> {Each Type}.  Uncheck whatever you don't want to see, or use the sort option to rearrange them appropriately.

I went to each of the different scenarios I didn't want under the wizard section and most of them didn't have checkboxes.  I looked in the admin some more, and worked out how to disable the devices (under the devices tree).  However the orbitor still shows climate/security/telecom etc.  I take it there is currently no way to turn this off (maybe a skin for the orbitor that doesn't show them or something).  

2) LinuxMCE does not require you to do any work to centralize your files.  Start here: http://wiki.linuxmce.org/index.php/FAQ#How_are_media_files_organized.3F Also, search the wiki for articles about adding, removing, and ignoring storage devices.  Once you have all the devices and media in the DB, you should update the metadata and coverart.  There are screencasts on how to do this and what the benefits are if you search the forums.

Ok, I've worked out how to disable storage devices that linuxmce has recognised, and have stopped it from scanning one of my disks (that has no media on it anyhows) which was the only one of the 4 hard disks in the machine that I had plugged in.  Given it hadn't picked up any of my other disks at all (the only difference between that and the other disks that I can think of offhand are that the other disks are all formatted FAT32 and the disk it picked up was formatted reiserfs).  I then created a bunch of links in /home/public/data and used the web admin to update.   This works and gives me a nice browsable list of files as long as I choose filename under the sort section.  However:-

a) It seems to default to Title every time I load it up.  This is not very much use when you have a lot of files, how do I set it to default to browsing by filename?

b) If I want to add a new file from another machine on the network and copy it onto the server so that I can play it (say into one of my users home/data/video directories), the only way to do so seems to be to login to the web server and tell it to update that directory.  Is there any way while viewing by filename to tell the core to refresh the directory?  Or any way to browse the filesystem to choose a file to play? (either without adding the file to the linuxmce directory or by automatically adding it when the file is played).  


3) You are on your own in this space, and will get very little support - in fact, I'm a bit surprised you haven't been flamed yet.  "Unsupported network configurations" is a touchy subject for some.  Although it is technically possible to do what you want, it is probably not worth the effort, and things may not work as expected due to auto-generated configuration files.  You're better off setting up a segmented network, which would separate "internet/LAN only" computers from the LinuxMCE network's "failure point" (Something like this: Internet --> [WAN] router [LAN] <-- [external NIC] Core  [internal NIC] --> Switch/hub <-- MDs, storage devices, etc).  I put "failure point" in quotes because, In my experience, the Core is much more reliable than my router.  I like to have the flexibility to take the Core down without disrupting the network connection of a few other key systems - this is a perfect case for a segmented network.  http://wiki.linuxmce.org/index.php/FAQ#Why_do_I_need_two_network_cards_in_my_Core.3F

The only issue I have with this is that my ADSL router currently also provides my wireless, so if I want to have a MD connected up wirelessly to the core then I will need to go buy another wireless access point and run two seperate wireless networks (one for my devices that I don't want to be dependent on the core being on or working to access the internet and another for any MD I want to connect to the core).  Given I'm currently still just trying out linuxmce I don't really want to be purchasing new equipment at the moment that I have no use for if I decide not to use it. 

4) search the forums - iPhone development is underway by someone, the thread was updated in the last couple days.  See also http://wiki.linuxmce.org/index.php/Developers_Guide (this link is from the front page of the wiki...) - there is quite a bit of information there.  Start by understanding DCE, and how it binds all these unrelated devices and applications together.

Whoops - missed that....   Haven't had a chance to read this yet, less inclined to do so if iphone development is coming along nicely (last time I looked at that thread it looked like nobody was actively working on iphone development at all).  

4
Users / Teething issues
« on: January 22, 2010, 06:25:36 pm »
Finally managed to get linuxmce installed on my server... Now I have the following questions:-

1) I don't currently have any way of watching live tv\controlling lights\controlling security and I have no intention of setting up the server for voip.  Is there anyway of removing the items that I don't currently want to use from the main screen?

2) I have a quite large amount of downloaded and self encoded video files and audio files spread across several internal hard disks.  In the past (and with XBMC which is what I had installed before) I wrote a script that just created a directory with all the video files static linked to.  I then pointed xbmc at that directory and told it that was my video files or music.  How do I do the equivalent with linuxmce??  How do I then tell linuxmce to not scan my other internal disks for other files (but still scan say a friends usb disk if I plug it in)?  So far linuxmce has picked up random video files and has failed to find any of my actual organised media.  

3) Due to issues with installing linuxmce (due to kubuntu not setting up my network so it worked on reboot), I installed with two NIC's in my machine (I read somewhere that it could cause problems with install if not).  The setup I actually want is to have the linuxmce server doing DHCP only and connected to my internal network (I don't want the server running linuxmce to be a single point of failure for my internet connection).  How do I go about changing linuxmce to just use one network card without reinstalling?

4) I plan to develop some iphone software to control linuxmce, what documentation is there to help people develop new orbiters?  

Thanks for any assistance on any of the above...

Pages: [1]