New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

p3-tvdb

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p3-tvdb

  • 0.9.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

h1. p3-tvdb

h2. What?

Search thetvdb.com's database

h2. Install

sudo gem install p3-tvdb

h2. How?

set up the client tvdb = P3::Tvdb::Search.new("YOURAPIKEY")

search for your series results = tvdb.search('the west wing')

get the series west_wing = tvdb.get_series_by_id(results["seriesid"]) puts west_wing.name => The West Wing

get an episode episode_22 = west_wing.get_episode(1, 22) puts episode_22.name => What Kind of Day Has It Been?

get series fanart - pass in your language puts west_wing.fanart('en').first.url => http://thetvdb.com/banners/fanart/original/72521-2.jpg

get series posters puts west_wing.posters('en').first.url => http://thetvdb.com/banners/posters/72521-1.jpg

get series banners puts west_wing.series_banners('en').first.url => http://thetvdb.com/banners/graphical/189-g.jpg

get season posters puts west_wing.season_posters(2, 'en').first.url => http://thetvdb.com/banners/seasons/72521-2.jpg

h2. Thanks

Thanks to thetvdb.com for their awesome database allowing us to meta out to our hearts consent.

FAQs

Package last updated on 25 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc