Jump to content

Nautilus Script


tzoukos

Recommended Posts

I made this tiny script for me, but by all means feel free to use it ( sorry but it appplies only for linux users with gnome desktop :( ). What it does is simply open the page of the correct episode in order for you to download the sub. I know, it's not anything great but it helps me, so I though I'd share.

Code

 for FILENAME in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS

do

 xbase=${FILENAME##*/}

 xpref=${xbase%.*}

 firefox http://www.addic7ed.com/search.php?search=$xpref

done



Simply create a file in /home/yourusername/.gnome2/nautilus-scripts and name it whatever you want ( I named in "Addic7ed"). Paste in the above code and you're ready to go. Alternatively, you can paste the attached file ;)

If you're using chrome or some other browser, then simply change "firefox" in line 5 with your own.

Cheers~

PS: Sorry to the mods if this post is in the wrong section - it seemed appropriate :)

Addic7ed.zip

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Member Statistics

    27177
    Total Members
    6268
    Most Online
    ErinWilkinsonSaf
    Newest Member
    ErinWilkinsonSaf
    Joined
×
×
  • Create New...