Flexget / Flexget

The official FlexGet repository
http://www.flexget.com
MIT License
1.73k stars 471 forks source link

t411 : Animation category #1243

Closed Clem- closed 6 years ago

Clem- commented 8 years ago

Expected behavior:

When searching for movies in "Animation" category with t411 plugins, it looks for a category beginning with "Animation" (as described in wiki).

Actual behaviour:

The problem is that there is two categories beginning with Animation : Animation (pid 455) and Animation Série (pid 637) so the following error occurs :

Multiple rows were found for one()

and the task fails.

Config:

  animMulti:
    discover:
      what:
        - movie_list: IMDbVO
      from:
        - t411:
            category: Animation

Log:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flexget/task.py", line 443, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/input/discover.py", line 272, in on_task_input
    return self.execute_searches(config, entries, task)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/input/discover.py", line 143, in execute_searches
    search_results = search.search(task=task, entry=entry, config=plugin_config)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugin.py", line 120, in wrapped_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/plugin_torrent411.py", line 99, in search
    search_result = proxy.search(query)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/api_t411.py", line 658, in search
    client_query = self.friendly_query_to_client_query(query)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/api_t411.py", line 478, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/utils/database.py", line 34, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/api_t411.py", line 627, in friendly_query_to_client_query
    .filter(Category.name == friendly_query.category_name) \
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2727, in one
    "Multiple rows were found for one()")
MultipleResultsFound: Multiple rows were found for one()
Icesenator commented 8 years ago

Same issue here, I try with PID & ID but it also don't work.

Clem- commented 8 years ago

Yep, in order to make it work, I'm using the IF plugin:

    if:
      - t411_category != 455: reject

You'll also have to use the t411_lookup: fill to be able to filter according to t411_category.

Cheers.

Icesenator commented 8 years ago

Hi, Je suppose que tu es Francais ?

Mon script ressemble a ca pour le moment :

#  animsT411:
#    t411:
#      category: Animation
#      terms:
#        - Français
#        - Multi
#        - HDrip 1080
#        - TVripHD 1080
#        - Web-Dl 1080
#        - Web-Dl 4K
#        - HDlight 1080
#        - HDrip 4k
#        - TvripHD 4k
#        - 2D
#    accept_all: yes
#    disable:
#      - seen
#      - seen_info_hash
#      - retry_failed
#    imdb_lookup: yes
#    trakt_lookup:
#      username: Xobble
#    imdb_required: yes
#    if:
#      - imdb_year < now.year -15 : reject
#      - trakt_collected : reject
#    deluge: yes
#    deluge :
#      host: 127.0.0.1
#      port: 15111
#      username: ********
#      password: *********
#      movedone: /home/disk2/**********/torrents/Seedbox/Movies
#      label: AnimsT411

Je ne vois pas trop comment intégré les commandes que tu m'as transmisses. Comment tu génère tes inputs ?

Le mar. 5 juil. 2016 à 14:12, Clément E. notifications@github.com a écrit :

Yep, in order to make it work, I'm using the IF plugin:

if:
  - t411_category != 455: reject

You'll also have to use the t411_lookup: fill to be able to filter according to t411_category.

Cheers.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Flexget/Flexget/issues/1243#issuecomment-230461336, or mute the thread https://github.com/notifications/unsubscribe/AQyJmw9WAVwo7h_qWnukCm3nyOzl0mmfks5qSko5gaJpZM4I488t .

Clem- commented 8 years ago

Tu as juste à ajouter les lignes en gras dans ta configuration et changer la catégorie en Films/Séries TV: You just have to add the following lines (in bold) in your config file and change the T411 category parameter to "Films/Séries TV":

  imdb_required: yes t411_lookup : fill if:

  • imdb_year < now.year -15 : reject
  • trakt_collected : reject - t411_category != 455: reject  
Icesenator commented 8 years ago

J'avais déjà essayer avant de redemander mais j'ai toujours la même erreur "Multiple rows were found for one ()" I tried but I have the same issue.

Au niveau de la catégorie du plugin t411, tu as mis quoi ? What do you put in category for t411 plugin ?

Le mar. 5 juil. 2016 à 16:37, Clément E. notifications@github.com a écrit :

Tu as juste à ajouter les lignes en gras dans la configuration suivante : You just have to add the following lines (in bold) in your config file :

imdb_required: yes _t411lookup : fill if:

  • imdb_year < now.year -15 : reject
  • trakt_collected : reject

_- t411category != 455: reject

You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Flexget/Flexget/issues/1243#issuecomment-230496826, or mute the thread https://github.com/notifications/unsubscribe/AQyJmwXgXXnE6k_wxX8rmS4Ko3P-cKPuks5qSmwTgaJpZM4I488t .

Clem- commented 8 years ago

Oui il faut en fait mettre la catégorie "Film/Vidéo" dans ton plugin t411 (et non Animation). You have to change the category parameter of t411 plugin from Animation to "Film/Vidéo".

2016-07-05 16:51 GMT+02:00 Icesenator notifications@github.com:

J'avais déjà essayer avant de redemander mais j'ai toujours la même erreur "Multiple rows were found for one ()" I tried but I have the same issue.

Au niveau de la catégorie tu plugin t411, tu as mis quoi ? What do you put in category for t411 plugin ?

Le mar. 5 juil. 2016 à 16:37, Clément E. notifications@github.com a écrit :

Tu as juste à ajouter les lignes en gras dans la configuration suivante : You just have to add the following lines (in bold) in your config file :

imdb_required: yes _t411lookup : fill if:

  • imdb_year < now.year -15 : reject
  • trakt_collected : reject

_- t411category != 455: reject

You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Flexget/Flexget/issues/1243#issuecomment-230496826, or mute the thread < https://github.com/notifications/unsubscribe/AQyJmwXgXXnE6k_wxX8rmS4Ko3P-cKPuks5qSmwTgaJpZM4I488t

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Flexget/Flexget/issues/1243#issuecomment-230501159, or mute the thread https://github.com/notifications/unsubscribe/AB2KlXHL9kjU0aEJv8x7Cp-66A4E207kks5qSm9hgaJpZM4I488t .

Icesenator commented 8 years ago

Étrange maintenant que j'ai mis " Film/Vidéo" j'ai regardé un peu les inputs généré et il y a de tout. Des music, des magasins, des séries, des jeux... Et il fait un lookup Imdb avec tout ça ! Les terms ne sont également pas appliqué.

Clem- commented 8 years ago

Oui. Et le filtre IF que j'ai proposé dans ma première réponse devrait rejeter toutes les entrées ne correspondant pas au PID du filtre.

Le 5 juil. 2016 à 17:07, Icesenator notifications@github.com a écrit :

Étrange maintenant que j'ai mis " Film/Vidéo" j'ai regardé un peu les inputs généré et il y a de tout. Des music, des magasins, des séries, des jeux...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Icesenator commented 8 years ago

Oki il faut que je m'arrange pour que le filtre PID passe avant le lookup et ca m'ira :) Merci à toi !

Le mar. 5 juil. 2016 à 17:37, Clément E. notifications@github.com a écrit :

Oui. Et le filtre IF que j'ai proposé dans ma première réponse devrait rejeter toutes les entrées ne correspondant pas au PID du filtre.

Le 5 juil. 2016 à 17:07, Icesenator notifications@github.com a écrit :

Étrange maintenant que j'ai mis " Film/Vidéo" j'ai regardé un peu les inputs généré et il y a de tout. Des music, des magasins, des séries, des jeux...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Flexget/Flexget/issues/1243#issuecomment-230515297, or mute the thread https://github.com/notifications/unsubscribe/AQyJm81iOsXqklncNz-8HESSb8ltY-64ks5qSnpEgaJpZM4I488t .

lildadou commented 8 years ago

For mainteners: It seems that the autocomplete tag name feature was a mistake. I will remove it for fixing the bug. Fixing scheduled for thix weekend.

Bonsoir et merci pour le ticket. C'est la seconde fois que la possibilité de ne pas remplir complètement les tags cause des problème. Je vais retirer cette fonctionnalité.

@Icesenator a écrit :

Étrange maintenant que j'ai mis " Film/Vidéo" j'ai regardé un peu les inputs généré et il y a de tout. Des music, des magasins, des séries, des jeux... Et il fait un lookup Imdb avec tout ça ! Les terms ne sont également pas appliqué.

Ce n'est pas un bug. Tapes çà pour voir que la catégorie Film/Vidéo n'est associé à aucun type de terme : flexget t411 list-terms --category "Film/Vidéo"

cvium commented 6 years ago

Site is dead