Code Monkey home page Code Monkey logo

addic7ed-ruby's People

Contributors

florentsolt avatar harg avatar michaelbaudino avatar pmaene avatar syntaxterr0r avatar thibaudgg 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

addic7ed-ruby's Issues

Remove Nokogiri dependency

Hello there,

Nokogiri requires to build a native C extension (and the presence of libxml2-dev & libxslt1-dev).
It can become a real pain to have it installed & working on some NAS / Mediacenter systems.

Is Nokogiri really required here?

Best subtitle

Hi,
Thank you for your job!
Maybe I missed something (like an option) but why downloading the "best subtitle" (that is the most downloaded?) instead of the subtitle that is matching with the "group" of the file?
Here is an exemple:
!----------------------------------------------------------
show: Mr. Robot
season: 1
episode: 3
tags: ["INTERNAL", "720P", "HDTV", "X264"]
group: KILLERS
distribution:
Available subtitles:
http://www.addic7ed.com/original/102176/14 -> ASAP (French, Completed) [5980 downloads]
http://www.addic7ed.com/original/102176/15 -> KILLERS (French, Completed) [3073 downloads]
http://www.addic7ed.com/original/102176/16 -> WEB-DL (French, Completed) [2093 downloads]
http://www.addic7ed.com/original/102176/17 -> WAREZNIK (French, Completed) [605 downloads]
Best subtitle:
http://www.addic7ed.com/original/102176/14 -> ASAP (French, Completed) [5980 downloads]
New subtitle downloaded for /Users/user/Downloads/Mr_Robot/Mr. Robot.S01E03.INTERNAL.720p.HDTV.x264-KILLERS.mkv.
Enjoy your show :-)
!----------------------------------------------------------

Is there any way to force the program to download the corresponding subtitle regarding the group?

Thank you.

Use subtitles names instead of files names

Hi,
First of all, more than an issue ticket, this is a suggestion.

When running the scraper, using the following example:

$ addic7ed -l fr /path/to/Californication.S06E07.720p.HDTV.x264-2HD.mkv

I end up with the two following files:

$ ls
Californication.S06E07.720p.HDTV.x264-2HD.mkv
Californication.S06E07.720p.HDTV.x264-2HD.srt

So far, so good. But wouldn't it be great to keep addic7ed file name instead of the mkv file name ?
ie: "Californication - 06x07 - The Dope Show.2HD.French.updated.Addic7ed.com.srt/mkv"

or EVEN BETTER keep only the serie/episode part (Californication - 06x07 - The Dope Show.srt.mkv)

I would have done it myself and proposed a pull request for it but I don't know ruby syntax at all...

Thanks anyway for the good work, keep it up!

Search fails for some subtitles

Currently, subtitles for some shows cannot be found, although they are available on Addic7ed. Examples are "DC's Legends of Tomorrow" and "The Flash (2015)"? In both cases, the release name extracted from the video file differs slightly from the name used on Addic7ed.

Web tool

We could build a very simple web tool (a Rack/Sinatra app on a $7/mo Heroku lobby instance) where a user can drag-n-drop a video file, an HTML5 API call grabs the file name, searches for a subtitle, and redirects to it so the user browser downloads it directly.

A textbox could also be available if people want to enter a filename directly.

The frontend would be a JS/HTML5 small app that calls the Sinatra app, that would the be a proper API (with very simple spec like GET /subtitle/:video_file_name # => HTTP 301 to the subtitle).

Undefined method "filename" for Episode class object

Hi,

I get following error:

    bin/addic7ed:115:in `rescue in block in <main>': undefined method `filename' for
    #<Addic7ed::Episode:0x0000000140c2b0> (NoMethodError)
    from bin/addic7ed:83:in `block in <main>'
    from bin/addic7ed:77:in `each'
    from bin/addic7ed:77:in `<main>'

bin/addic7ed:

  rescue Addic7ed::ShowNotFound
    puts "Show not found on Addic7ed : #{ep.filename.showname}. Skipping.".gsub(/^/, options[:verbose] ? '  ' : '') unless options[:quiet]
    next
  rescue Addic7ed::EpisodeNotFound
    puts "Episode not found on Addic7ed : #{ep.filename.showname} S#{ep.filename.season}E#{ep.filename.episode}. Skipping.".gsub(/^/, options[:verbose] ? '  ' : '') unless options[:quiet]
    next

"ep.filename.episode" should be "ep.file.episode"

Regards

Year in show name can mess things out

For example, The.Americans.2013.S01E04.720p.HDTV.X264-DIMENSION.mkv cannot be guessed properly : Addic7ed does not use "The Americans 2013" not "The Americans (2013) but only "The Americans".

More and more "No (acceptable) subtitles"

Hi Michael.

I'm using your auto downloader for a while now, but I notice that I have a lot of difficulties for the last month.

Example:

Searching subtitles for Star.Crossed.S01E06.HDTV.x264-LOL.mp4
  Guesses for Star.Crossed.S01E06.HDTV.x264-LOL.mp4:
    show:    Star Crossed
    season:  1
    episode: 6
    tags:    ["HDTV", "X264"]
    group:   LOL
  No (acceptable) subtitle has been found on Addic7ed for Star.Crossed.S01E06.HDTV.x264-LOL.mp4. Maybe try again later.

But on the addic7ed website:
subtitles

This happens a lot with Marvel Agents Of S.H.I.E.L.D. too.

Thanks a lot,
Litz.

Split API and CLI

We should remove the CLI script from this project to make it a pure Ruby library.

CLI should be moved to a addic7ed-cli project which uses addic7ed-ruby (and powered by Thor or GLI).

It should take away from the API gem both the actual CLI code (the bin/addic7ed file) and the actual downloading of the subtitle file (the API gem should only return the URL).

Bug when no subtitle exists in a language

Addic7ed previously added a tiny yellow warning that we used to detect that no subtitle is available for the requested language. They removed it, so this gem is now retrieving a random language subtitle when the requested language has absolutely no available subtitle.

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.