GithubHelp home page GithubHelp logo

taingra / orgmdb.el Goto Github PK

View Code? Open in Web Editor NEW

This project forked from isamert/orgmdb.el

0.0 1.0 0.0 713 KB

An OMDb API client for Emacs with some org-mode related convenience functions.

License: GNU General Public License v3.0

Emacs Lisp 100.00%

orgmdb.el's Introduction

orgmdb.el

I keep my watchlist in org-mode and this package makes metadata retrieving pretty easy through OMDb. The package is quite immature, I just copied functions from my Emacs config and called it a package.

Installing

Download the orgmdb.el and put it into your load path, then you can use it by (require 'orgmdb).

Another option is to use use-package and quelpa:

(use-package orgmdb
  :ensure t
  :quelpa (orgmdb
           :fetcher github
           :repo "isamert/orgmdb.el"))

Demo

./orgmdb.gif

Usage

You need get yourself an API key to be able to use this package, see OMDb website. After getting yourself an API key, you can start using.

(setq orgmdb-omdb-apikey "YOUR-API-KEY")
(let ((movie (orgmdb :title "in the mood for love")))
  (format "Movie name: %s, Year: %s, Plot: %s"
          (orgmdb-title movie)
          (orgmdb-year movie)
          (orgmdb-plot movie)))

Another example:

(orgmdb :title "thinking of ending things" :year 2020)

;; This returns something like this:
((Title . "I'm Thinking of Ending Things")
 (Year . "2020")
 (Rated . "R")
 (Released . "04 Sep 2020")
 (Runtime . "134 min")
 (Genre . "Drama, Thriller")
 (Director . "Charlie Kaufman")
 (Writer . "Charlie Kaufman (written for the screen by), Iain Reid (based on the book by)")
 (Actors . "Jesse Plemons, Jessie Buckley, Toni Collette, David Thewlis") (Plot . "Full of misgivings, a young woman travels with her new boyfriend to his parents' secluded farm. Upon arriving, she comes to question everything she thought she knew about him, and herself.")
 (Language . "English, Spanish")
 (Country . "USA") ...)

There are also some other interactive functions that you can use, for example:

orgmdb-movie-properties
Show all properties of a movie in a cute little org-mode buffer with a small poster. If you call this function on a org header, it’ll search for header title in the OMDb. This is the function that you can see in the demo above.
orgmdb-fill-movie-properties
Fetch and set preselected list of properties (see orgmdb-fill-property-list) to current org header. This is useful for having some metadata under your header so that you can filter/search etc. with those properties.

orgmdb.el's People

Contributors

isamert avatar

Watchers

 avatar

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.