Beiträge von culprit

    Hi,


    Thanks for the excellent work (as always) here ryecoaaron.


    I followed the instructions you were providing and found exactly the same issues as the OP.


    chmod 1777 got me back into the webGUI at the end as well.


    Updates did't work though. "/var/lib/dpkg/updates" does not exist.


    I ran :
    mkdir /var/lib/dpkg/update
    chmod 755 /var/lib/dpkg/update
    apt-get upgrade


    And all appears normal again.


    Is it a coinicidence for us to have the same issue at about the same time?

    I have the same type of error with the web interface only SSH connection was being refused. I hooked up a monitor and keyboard to the server but couldn't see anything immediately wrong and issued a reboot.


    SSH is back but the web interface gives the same type of error:


    "session_start(): open(/var/lib/php5/sess_8a338an3kdntcfdnsmhncaclj0, O_RDWR) failed: No such file or directory (2)"


    I've not upgraded OMV or changed the config in any way since the last update for 0.4


    Puzzling.

    Here you go Solo0815:


    Code
    find: warning: Unix filenames usually don't contain slashes (though pathnames do).  That means that '-name `/media/unqiue-storage-identifier/video/moviedump/*/*.nfo'' will probably evaluate to false all the time on this system.  You might find the '-wholename' test more useful, or perhaps '-samefile'.  Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ `/media/bb09e796-5566-4eb2-8fc1-043a156233c4/video/moviedump/*/*.nfo''.
    Working on '' --- Folder = ''

    I've tried running that. Added in full paths but still no luck.


    I've dropped the "-s" option form grep and that outputs "/media/unique-storage-string/video/moviedump/Name Of Folder (2011)/*.nfo: no such file or directory" but I am 100% sure the file it's looking for exists. I am running the script from /scripts at the OS root.


    If I navigate to the moviedump folder via CLI and run (as root):


    Code
    grep "UK:12" "Name Of Folder (2011)"/*.nfo


    I get the correct output of <certification>UK:12</certification>. It looks like grep in the script is not using the wildcard for some reason.

    Hi,


    Script isn't working for me I'm afraid. Here is the relevant folder structure:


    /videos/movieshifter.sh
    /videos/moviedump/Movie To Shift (2011)/Movie To Shift.avi
    /videos/moviedump/Movie To Shift (2011)/Movie To Shift.nfo
    /videos/moviedump/Movie To Shift (2011)/Movie To Shift.srt
    /videos/moviedump/Movie To Shift (2011)/Movie To Shift.tbn
    /videos/moviedump/Movie To Shift (2011)/folder.jpg
    /videos/movies/u/
    /videos/movies/pg
    /videos/movies/12
    /videos/movies/15
    /videos/movies/18


    movieshifter.sh:


    I've put the find condition in quotes as the script was not handling folder names with spaces. It treated each word as a folder to search.


    My output is always "no rating found, skipping file".
    If I echo out $D I get "moviedump moviedump/Movie To Shift (2011)".
    If I change grep to recursive then it finds the string "<certification>UK:12</certification>" correctly but nothing gets moved.


    Still tinkering.

    I know PHP so I've started cobbling together bits of Python from around the web.


    Below is my progress so far but I'm coming up against my rough and ready abilities so getting stuck.


    I'm pretty sure my syntax is all to shite and the pyinotify stuff, while very neat and powerful, just looks like Hieroglyphics to me.


    Any help appreciated.


    Hi,


    I'm a full on OMV convert. From using a Win7 PC with some external storage the NAS world looked scary as hell. OMV is making the transition amazingly smooth. I've put in about 20+ hours of config so far and got things tweaked satisfactorily for most of the popular services, but I've run up against something I could do with some help on.


    I like to organise my movies by UK age certification as follows:


    /video
    ->/movies
    ->/u
    ->/pg
    ->/12
    ->/15
    ->/18


    e.g. /video/movies/18/Expendables 2/movie.avi, movie.nfo, etc


    This method allows simple access control levels for my kids and their XBMC libraries.
    Couchpotato post-processing gives me perfect folder and file naming along with an XBMC compatible nfo file filled with IMDB data including <certification> tag.
    Currently CouchPotato dumps the processed folder into /video/movies and I manually sort into the correct rating folder. What would completely automate this process is a perl or python script (along with a cron job) that watches for new movies turning up (perhaps a new folder like /video/movies/couchpotatodrop/), parses the nfo file for the certification value and then moves the movie folder to the appropriate rating folder.


    Sadly I don't know Perl or Python and while my PHP experience tells me this isn't a hugely complex script it is still beyond me. Is there any Perl or Python guru on the board who would write a little script to do this job?


    nfo file can be named "movie.nfo" or <folder name>/nfo [e.g. Expendables 2 (2012).nfo] soetimes with both files being present.


    IMDB certification tag values can be:
    "UK:18", "UK:15", "UK:12A", "UK:PG", "UK:U"


    Some nfo files have certification data for lots of countires but the UK rating is always in the format above.


    Any takers?