Giter Club home page Giter Club logo

nautilus-subliminal's Introduction

Hi there 👋

Somehow you've landed here 🤔

I am probably building something or learning some stuff. Feel free to look around, check my contributions below, website and LinkedIn profile.

nautilus-subliminal's People

Contributors

adnanyaqoobvirk avatar ashucg avatar diaoul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nautilus-subliminal's Issues

Greek language is missing

When I open the Subliminal - Configuration menu, in Languages list, Greek Language does not appear, as an option. It is not listed at all, nor its codes (el, or gr). Can you propose a fix?

install script is not working

The install script seems not working on Linux Mint 17.3 :

Installing necessary packages...
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
python-nemo est déjà la plus récente version disponible.
git est déjà la plus récente version disponible.
python-pip est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 15 non mis à jour.
Cloning subliminal-nautilus (nemo branch)...
Clonage dans '/tmp/tmp.nAmUsfLu7s'...
remote: Counting objects: 23, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 23 (delta 8), reused 16 (delta 7), pack-reused 0
Unpacking objects: 100% (23/23), done.
Vérification de la connectivité... fait.
install.sh: 46: install.sh: pushd: not found

I think the "pushd ${TMP_DIR}" command is incorrect : pushd syntax is "pushd myDir/" and not "pushd myDir".

Feature Request: download cover from IMDB

Hi,

It will be nice if the script would download the cover from IMDB (in a file named cover.jpg ... or the file name could be defined in the configuration). Of course, this would be an option activated in the configuration.

opensubtitles.org displays it ! ;-)
So even with Subliminal I still go to opensubtitles.org, to get the IMDB page of the movie and display then download the cover (the one from opensubtitles.org is too small).

Thanks for a great script anyway.

BTW, the install script stopped at line 46 (pushd). I don't understand why, but I ran the rest of the script manually and it's all OK.

Removing Subliminal Nautilus

How does on remove Subliminal Nautilus ?

What I did :

  • sudo rm -r /usr/share/nautilus-python/extensions
  • sudo apt purge python-nautilus

Installation fails with wget and curl, installing manually does not work either

I tried to install with wget and curl but it did not work. Manually it seems that the install worked normally but no option was showed of subliminal. I'm on Ubuntu GNOME 16.04 64-bit.

Trying to install with wget:

$ wget https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh -O - | sudo sh
--2017-02-28 19:02:42--  https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.56.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.56.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2457 (2,4K) [text/plain]
Saving to: ‘STDOUT’

-                   100%[===================>]   2,40K  --.-KB/s    in 0s      

2017-02-28 19:02:42 (92,9 MB/s) - written to stdout [2457/2457]

Installing necessary packages...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git is already the newest version (1:2.7.4-0ubuntu1).
python-nautilus is already the newest version (1.1-4).
python-pip is already the newest version (8.1.1-2ubuntu0.4).
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-headers-4.4.0-57
  linux-headers-4.4.0-57-generic linux-headers-4.4.0-62
  linux-headers-4.4.0-62-generic linux-image-4.4.0-31-generic
  linux-image-4.4.0-57-generic linux-image-4.4.0-62-generic
  linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-57-generic
  linux-image-extra-4.4.0-62-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.
Cloning subliminal-nautilus...
Cloning into '/tmp/tmp.x8FFTNybBB'...
remote: Counting objects: 23, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 23 (delta 8), reused 16 (delta 6), pack-reused 0
Unpacking objects: 100% (23/23), done.
Checking connectivity... done.
sh: 46: pushd: not found

Trying to install with curl:

$ curl -fsSL https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh -O - | sudo sh
[sudo] password for jj: curl: option -: is unknown
curl: try 'curl --help' or 'curl --manual' for more information

Manually:

$ sudo -H bash install.sh 
Installing necessary packages...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git is already the newest version (1:2.7.4-0ubuntu1).
python-nautilus is already the newest version (1.1-4).
python-pip is already the newest version (8.1.1-2ubuntu0.4).
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-headers-4.4.0-57
  linux-headers-4.4.0-57-generic linux-headers-4.4.0-62
  linux-headers-4.4.0-62-generic linux-image-4.4.0-31-generic
  linux-image-4.4.0-57-generic linux-image-4.4.0-62-generic
  linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-57-generic
  linux-image-extra-4.4.0-62-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.
Installing python requirements...
Requirement already up-to-date: subliminal>=2.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 1))
Requirement already up-to-date: appdirs>=1.3 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: click>=4.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: rarfile>=2.7 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: stevedore>=1.0.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: beautifulsoup4>=4.4.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: enzyme>=0.4.1 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: chardet>=2.3.0 in /usr/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: babelfish>=0.5.2 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: pysrt>=1.0.1 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: pytz>=2012c in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: requests>=2.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: futures>=3.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: six>=1.9.0 in /usr/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: guessit>=2.0.1 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: dogpile.cache>=0.6.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: pbr>=1.8 in /usr/local/lib/python2.7/dist-packages (from stevedore>=1.0.0->subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: rebulk>=0.8.2 in /usr/local/lib/python2.7/dist-packages (from guessit>=2.0.1->subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: python-dateutil in /usr/local/lib/python2.7/dist-packages (from guessit>=2.0.1->subliminal>=2.0->-r requirements.txt (line 1))
Installing extension...

Subliminal extension for Nautilus is now installed!

Please visit https://github.com/Diaoul/nautilus-subliminal for any issue

The files seems to be created, though:

/usr/share/nautilus-python/extensions$ ls
nautilus-subliminal.py  subliminal

Command not found: msgfmt

I got following error -
main:59: command not found: msgfmt

It can be fixed by sudo apt install gettext

OS Details -

  • PopOs - 19.10
  • Gnome - 3.34.2

No module named setuptools

After using bash from #9 , I got error - No module named setuptools.

I ran [sudo] apt-get install python-setuptools to fix it.
Please add it to python dependencies list.

Distro - Linux Mint 19.3

Nautilus freezes for ~30 seconds when using Subliminal

Hello,
Whether I choose Download Subtitles or Choose Subtitles to download them manually, it results in Nautilus becoming unresponsive for ~30-40 seconds before the context window comes up and starts searching for subtitles.

Anyone have any ideas on what might be causing this? The fact that the freeze takes place before any actual subtitle searching makes me think it doesn't have to do with the subtitle prociders APIs being slow or unresponsive or something.

One line installation not working. install.sh not working either.

Hi,

First, I would like to thank you for this. Looks like a great tool.

But I couldn't get it to run with neither of the one line installation methods (wget or curl):

santiago@sle-linux-Precision-5510:~$ wget https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh -O - | sudo sh

--2016-08-19 14:19:58-- https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh

Resolving raw.githubusercontent.com (raw.githubusercontent.com)... [sudo] password for santiago: 151.101.56.133

Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.56.133|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 2457 (2.4K) [text/plain]

`Saving to: ‘STDOUT’'

100%[======================================>] 2,457 --.-K/s in 0s

2016-08-19 14:19:59 (51.4 MB/s) - written to stdout [2457/2457]
and nothing happend to I had to CTRL-C ti stop the process.

With curl:
santiago@sle-linux-Precision-5510:~$ curl -fsSL https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh -O - | sudo sh

[sudo] password for santiago: curl: option -: is unknown

curl: try 'curl --help' or 'curl --manual' for more information

I am using Ubuntu 14.04.

So I downloaded manually the install.sh file, and did:

santiago@sle-linux-Precision-5510:~/Downloads$ sudo sh install.sh
[sudo] password for santiago:
Installing necessary packages...
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-nautilus is already the newest version.
python-nautilus set to manually installed.
git is already the newest version.
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Cloning subliminal-nautilus...
Cloning into '/tmp/tmp.G0Lqrt6uEK'...
remote: Counting objects: 23, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 23 (delta 8), reused 16 (delta 6), pack-reused 0
Unpacking objects: 100% (23/23), done.
Checking connectivity... done.
install.sh: 46: install.sh: pushd: not found

So I eventually just clone the repository and then sudo ./install.sh and that seemed to work.

Nemo: popup menu not working (Linux Mint Rosa)

The plugin is enabled. I can see it with right click. The download works (downloaded default eng. subtitle). But i can not choose or config. It will not open the menu.

sollie@Sollie-Laptop ~ $ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 17.3 Rosa
Release: 17.3
Codename: rosa

sollie@Sollie-Laptop ~ $ nemo --version
nemo 2.8.6

PS: I installed nautlis. Same problem!

Python error when attempting to select or download subtites

When attempting to select or download subtites for any video file:

Traceback (most recent call last):
  File "/usr/share/nautilus-python/extensions/nautilus-subliminal.py", line 186, in choose_callback
    refine(video, episode_refiners=self.config.refiners, movie_refiners=self.config.refiners,
  File "/usr/lib/python3.8/site-packages/subliminal/core.py", line 546, in refine
    for refiner in ('hash', ) + refiners:
TypeError: can only concatenate tuple (not "list") to tuple

The actual issue could be in subliminal, rather than in nautilus-subliminal, tough.

I'm using python 3.8, subliminal 2.1.0, and nautilus 3.36, on mageia cauldron.

No more French language

When I install Subliminal Nautilus, Nautilus is in English: French language is gone for the core messages. Only the extensions display messages in French.

Install script fails (pushd/popd not supported)

Hello,

The installation instructions states to run:
wget https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh -O - | sudo sh
However the bourne shell (sh) does not know the command pushd ... so the script will fail.
bash should be used.
So the command would write:
wget https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh -O - | sudo bash

Cheers.

Not integrating with nautilus.

wget didn't work. So I manually downloaded the file and installed it. It installed good. Screenshot also attached. I even restarted the system. Still nothing in the right click options. Please help.

screenshot from 2018-09-18 18-40-20

Problems to install the nemo integration on Linux Mint 21 Vanessa Cinnamon

I tried to install the nemo integration of subliminal but this happens:
guidopancera@guidopancera-Lenovo-ideapad-320-15IKB:~$ wget https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/nemo/install.sh -O - | sudo sh
Salvando em: ‘STDOUT’

  •               100%[===================>]   2,42K  --.-KB/s    em 0s      
    

2022-09-27 23:00:08 (51,1 MB/s) - escrito para a saída padrão [2483/2483]

Installing necessary packages...
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto
python-nemo já é a versão mais recente (5.4.1+vanessa).
python-pip já é a versão mais recente (20.3.4+dfsg-4).
git já é a versão mais recente (1:2.34.1-1ubuntu1.4).
Os seguintes pacotes foram instalados automaticamente e já não são necessários:
linux-headers-5.15.0-46 linux-headers-5.15.0-46-generic
linux-image-5.15.0-46-generic linux-modules-5.15.0-46-generic
linux-modules-extra-5.15.0-46-generic python3-wheel
Utilize 'sudo apt autoremove' para os remover.
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 19 não atualizados.
Cloning subliminal-nautilus (nemo branch)...
Cloning into '/tmp/tmp.UHVYDYJW0o'...
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 23 (delta 8), reused 14 (delta 6), pack-reused 0
Receiving objects: 100% (23/23), 16.56 KiB | 8.28 MiB/s, done.
Resolving deltas: 100% (8/8), done.
sh: 46: pushd: not found

Debian Jessie File Permissions Errors

There seems to be some issues regarding file permissions when I installed the latest script from the git repository on Debian Jessie

Firstly to even get the extension working I had to check the logs and manually delete the empty folder /home/.cache/subliminal as the extension didn't have the necessary file permissions to overwrite this folder and secondly the only way I could get round a error message of GLib.Error:_ g-file-error-quark: Failed to open file '/usr/share/nautilus-python/extensions/subliminal/ui/config.glade': Permission denied (2) was to change the file permissions of the /usr/share/nautilus-python/extensions/subliminal/ui/ directory to my user name.

Error when installing in Ubuntu 20.04 from sh script

Error: E: Unable to locate package python-pip

wget https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh -O - | sudo sh
--2020-06-07 14:26:32--  https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.192.133, 151.101.128.133, 151.101.64.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.192.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2457 (2.4K) [text/plain]
Saving to: ‘STDOUT’

-                              100%[===================================================>]   2.40K  --.-KB/s    in 0s

2020-06-07 14:26:34 (40.1 MB/s) - written to stdout [2457/2457]

Installing necessary packages...
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip
Error: failed to install required packages

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.6.14-050614-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-3210M CPU @ 2.50GHz
Memory: 15.5 GiB of RAM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.