2

How do I fully integrate Periscope with Nautilus so that I can right-click on a video file and get subtitles downloaded? I have downloaded all the appropriate files and Periscope is fully installed. The problem is getting it fully integrated with Nautilus or something like Nautilus. I do not want to operate at the the console

ALAN
  • 139

2 Answers2

1

Here's a simple Nautilus script that should do the job:

#!/bin/bash

# NAME:         Get_subtitles   
# AUTHOR:       (c) 2014 Glutanimate   
# DEPENDENCIES: periscope (https://code.google.com/p/periscope/)
# LICENSE:      MIT license (http://opensource.org/licenses/MIT)     

LANGUAGE="en"

while [ $# -gt 0 ]; do
    MOVIE="$1"
    periscope "$MOVIE" -l "$LANGUAGE"
    shift
done

Installation instructions.

Note: I don't have periscope installed so I'd appreciate your feedback on whether the script works or not.

Glutanimate
  • 21,763
0

Here is one particular way to do this:

First up, install python support in nautilus by installing python-nautilus and python-notify:

sudo aptitude install python-nautilus python-notify

Then install periscope.

Now you need to copy the periscope-nautilus.py script into the ~/.nautilus/python-extensions folder:

cd ~/.nautilus/python-extensions
wget http://periscope.googlecode.com/svn/trunk/bin/periscope-nautilus/periscope-nautilus.py

If you want to change the default languages, run periscope once, a file named "config" will be created under ~/.config/periscope. Update this file to reflect your preferred languages. (English example below, you can use commas to have multiple languages)

lang = en

Restart nautilus.

nautilus -q

Open nautilus and go find a video file, right click and now you've got the notification to see if corresponding subtitles were found.