All Projects → isamert → orgmdb.el

isamert / orgmdb.el

Licence: GPL-3.0 license
An Emacs/org-mode watchlist manager and OMDb API client

Programming Languages

emacs lisp
2029 projects

Projects that are alternatives of or similar to orgmdb.el

PKMigrator
Tools to migrate between various Personal Knowledge Management Utilities
Stars: ✭ 36 (+111.76%)
Mutual labels:  org-mode
org-rich-yank
📋 Rich text clipboard for org-mode: Paste as a #+BEGIN_SRC block of correct mode, with link to where it came from
Stars: ✭ 59 (+247.06%)
Mutual labels:  org-mode
copy-as-org-mode
A Firefox Add-on (WebExtension) to copy selected web page into Org-mode formatted text!
Stars: ✭ 138 (+711.76%)
Mutual labels:  org-mode
yeonghoey
A personal knowledge base
Stars: ✭ 13 (-23.53%)
Mutual labels:  org-mode
finito.el
📚 Manage books with Emacs 📚
Stars: ✭ 34 (+100%)
Mutual labels:  org-mode
org-outer-indent
An outer indentation org mode
Stars: ✭ 25 (+47.06%)
Mutual labels:  org-mode
ox-ssh
SSH config export for org-mode
Stars: ✭ 33 (+94.12%)
Mutual labels:  org-mode
org-mode-sms-inbox
Harvest org-mode todos with Dropbox, Twilio, and IFTTT.
Stars: ✭ 19 (+11.76%)
Mutual labels:  org-mode
org-roam-ui
A graphical frontend for exploring your org-roam Zettelkasten
Stars: ✭ 1,393 (+8094.12%)
Mutual labels:  org-mode
gcal
Google Calendar Utilities for Emacs
Stars: ✭ 12 (-29.41%)
Mutual labels:  org-mode
stremio-addons-list
A community curated list of Stremio Addons
Stars: ✭ 330 (+1841.18%)
Mutual labels:  movies
nroam
Org-roam backlinks within org-mode buffers
Stars: ✭ 106 (+523.53%)
Mutual labels:  org-mode
docker-spotweb
Dockerfile to set up Spotweb on ARM (like Raspberry Pi 2/3) and X86 based systems based on Alpine Linux
Stars: ✭ 22 (+29.41%)
Mutual labels:  movies
org-sync-snippets
Simple extension to export snippets to org-mode and vice versa
Stars: ✭ 14 (-17.65%)
Mutual labels:  org-mode
tmdb
A GraphQL Wrapper for The Movie Database
Stars: ✭ 16 (-5.88%)
Mutual labels:  movies
ob-elixir
org-babel functions for elixir evaluation
Stars: ✭ 24 (+41.18%)
Mutual labels:  org-mode
OrgMode.jl
A Julia library for working with Org.
Stars: ✭ 52 (+205.88%)
Mutual labels:  org-mode
github-orgmode-tests
This is a test project where you can explore how github interprets Org-mode files
Stars: ✭ 126 (+641.18%)
Mutual labels:  org-mode
org-toggl-py
Create Toggl entries from Emacs org-mode CLOCK entries
Stars: ✭ 41 (+141.18%)
Mutual labels:  org-mode
org-hexo
[DEPRECATE] Convert your org-mode blog to hexo markdown file
Stars: ✭ 20 (+17.65%)
Mutual labels:  org-mode

orgmdb.el

Tools for managing your watchlist in org-mode and some functions for interacting with OMDb API.

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"))

Planned to be released on MELPA.

Demo

Displaying detailed movie information

https://user-images.githubusercontent.com/8031017/154753759-5ddaca00-3245-433f-9c3a-13c1c48f5c01.gif

Filling movie metadata

https://user-images.githubusercontent.com/8031017/154753756-5108bb8d-4dd0-457c-95df-9bae7a7ad17c.gif

Opening a local video

https://user-images.githubusercontent.com/8031017/154756033-318e5482-67e5-4ae4-a40e-c29375faed58.gif

Configuration

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")

Interactive usage

orgmdb.el offers several actions that you can call upon a movie/show/episode objects. These actions can be accessed by calling orgmdb-act function. A movie/show object is simply an org header with a tag, like the following:

* Crouching Tiger, Hidden Dragon (2000) :movie:
* Succession (2018-) :series:

You can put your cursor on one of the headers and call orgmdb-act. From the menu, you can select Fill movie properties to pull movie metadata under the :PROPERTIES: drawer of the selected header. From now on, you can use other actions defined under the orgmdb-act menu.

An episode object is a special one, because it can be either a header containing an episode marker object (meaning something like S02E05) with an :episode: tag:

* Succession (2018-) :series:
** S01E08 - Prague :episode:

or it can be simply an episode marker object:

* Succession (2018-) :series:
- ...
- I watched S01E08 yesterday and it was cool.
-           ^^^^^^ here is our episode marker object

In both cases, if your cursor is on the episode object, orgmdb-act will understand the context and show the actions accordingly.

Here are the actions and their simple explanations:

Fill properties
Fill the metadata of the current object.
Show detailed info
Open a nicely formatted org buffer and display a detailed info of the current object with a small poster of it.
Select an episode...
Select an episode of the currently focused show and act on it.
Open local video
Find the local video file containing the current movie/show/episode. It searches video files under orgmdb-video-dir and looks for files with orgmdb-video-file-extensions extensions. orgmdb-player-function is used for opening the video file.

Defining new actions

You can define new actions for movie/show/episode objects using orgmdb-defaction function. See the following example:

(orgmdb-defaction
 :name 'show-info
 ;; ^ Define a unique name for this action
 :definition "Show title of the currently selected object"
 ;; ^ User-facing definition of the action
 :on '(movie show episode)
 ;; ^ On what objects this action should appear?
 :act (cl-function
       (lambda (type &key title imdb-id episode &allow-other-keys)
         (message "The title is %s, imdb-id is %s" title imdb-id))))

Library usage

(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)))
(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") ...)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].