{"id":13783705,"url":"https://github.com/cannibalox/movie-cli-2","last_synced_at":"2025-05-11T19:31:24.049Z","repository":{"id":55528391,"uuid":"523115343","full_name":"cannibalox/movie-cli-2","owner":"cannibalox","description":"A CLI tool to fetch and save movie details from omdb and comparing two movies. Nice for tracking watched movies in Logseq. ","archived":false,"fork":true,"pushed_at":"2023-01-17T21:30:49.000Z","size":470,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-07T04:54:19.484Z","etag":null,"topics":["cli","fetch","logseq","movies","omdb","shell-script","terminal"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mayankchd/movie","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cannibalox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-09T21:35:18.000Z","updated_at":"2025-02-26T00:17:55.000Z","dependencies_parsed_at":"2023-02-10T12:01:36.675Z","dependency_job_id":null,"html_url":"https://github.com/cannibalox/movie-cli-2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cannibalox%2Fmovie-cli-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cannibalox%2Fmovie-cli-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cannibalox%2Fmovie-cli-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cannibalox%2Fmovie-cli-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cannibalox","download_url":"https://codeload.github.com/cannibalox/movie-cli-2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253621054,"owners_count":21937469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","fetch","logseq","movies","omdb","shell-script","terminal"],"created_at":"2024-08-03T19:00:28.908Z","updated_at":"2025-05-11T19:31:23.686Z","avatar_url":"https://github.com/cannibalox.png","language":"JavaScript","funding_links":[],"categories":["🔍 CLI Tools and Scripts"],"sub_categories":["Misc CLI"],"readme":"# movie-cli-2\n\na CLI tool to fetch movies and tv series details from omdbApi.com and tmdb, or comparing two movies.\nIt can optionally save the movie metadata to the clipboard or as a markdown file in a custom folder. Metadata will be formatted as `property:: value` for Logseq note-taking app. \nversion : 1.1.0 2022-01-17\n\n# install\n\n```\nnpm i -g github:cannibalox/movie-cli-2\n```\n\n## requirements :\n\n- NodeJS \u003e 17.5\n- an api key from [omdbapi.com](https://www.omdbapi.com/apikey.aspx) to fetch movie details \n- a [TMDB api key](https://developers.themoviedb.org/) is required to fetch \"original title\" property\n# USAGE\n\nopen a terminal and type `movie` followed by search terms \n\n```\nUsage: movie [title] or [movie1]::[movie2]\n\nOptions:\n  -v, --version   output the current version\n  -k, --key       set and save your apîkeys\n  -r, --reset     resets options and clear keys\n  -s, --settings  define settings\n  -h, --help      display help for command\n\n```\nterminal showing info (left) | movie info saved as a md file inside Logseq (right)\n![ss_NetMeterEvo_NetMeter_Evo_20230117_zio7Vy0AvC](https://user-images.githubusercontent.com/4605693/212810011-f2243e69-4d22-40a8-abd5-429c3d641c08.png)\ndemo\n![ss_WindowsTerminal_Windows_PowerShell_20230112_Y8WrqVr4In](https://user-images.githubusercontent.com/4605693/212810444-6561117e-eff7-4c68-a7b6-ffad06acf6cd.gif)\n\n## configuration\n\n- on first start, the program should enter configuration mode and will let you choose options (eg: define which metadata to fetch, auto-save to clipboard, etc...)\n- please get your own api keys for omdbapi (https://www.omdbapi.com/apikey.aspx) and TMDB (https://www.themoviedb.org/settings/api)\n- the configuration is automatically saved, use `movie -v` to see the location of the config file\n- use `movie --reset` or `movie --settings` to modify the configuration after the first run \n\nsetup screen\n![ss_WindowsTerminal_Windows_PowerShell_20230117_qWz46CpZWY](https://user-images.githubusercontent.com/4605693/212809801-627a80a4-b90f-4753-85d6-8bd138411daa.png)\n\n### for logseq users:\n  - the movie metadata can be saved as a markdown file as `property:: value`. It can add a `title::` and fill default `tags::`\n  - don't forget to set your date format in the config file to match your logseq date format (like yyyymmdd | yyyy-mm-dd | dddd, MMM do, yyyy | etc...)\n    (refer to logseq docs and https://github.com/felixge/node-dateformat#mask-options to see available formats)\n  - the script can optionally ask for a custom rating and watched date, they will be saved as properties `rating::` and `watched:: [[%date%]]` (a few custom arguments are possible)\n  - filepaths should point to your logseq journals and logseq pages folder (eg: 'c:\\\\logseq-graph\\\\journals', 'd:/logseq/pages' or '/Users/path/to/logseq/pages/or/journal/'). Test the output on a temp folder beforehand.\n    the folders must exist prior to the execution. the trailing `\\` or `/` is not required.\n  - the script can optionally set a log line in the daily journal at the %watched date% defined for the movie\n![ss_Logseq_Logseq_20230112_wOSbsTATWL](https://user-images.githubusercontent.com/4605693/212810237-7d0c28b4-065e-4831-848a-385affa32b32.gif)\n\n## new features and improvements\n\nthe script is forked from Mayankchd's [movie-cli](https://github.com/mayankchd/movie/blob/master/cli.js), tailored for my personal movie tracking workflow in Logseq.\nnotable differences and new features :\n- added a list of matching titles to pick from, to disambiguate titles like `Alone (2008)` vs `Alone (2020)` \n- added save to clipboard and save to file options\n- added `original-title::` property using TMDB api for non-English titles\n- added custom inputs (ratings, watched date)\n- refactor code, updated to ECMAScript modules, update dependencies and removed isomorphic-fetch.\n\n## limitations\n\nin case of errors, try `mmovie -r` or `movie -s` to reset the settings.\nonly supports markdown, not org-mode format.\nthe daily page log is crude : it doesn't rely on the logseq API, it's only appending a line at the end of the md file. \nuse with wisdom and be careful of your data : backup your logseq folders, test outputs in a temp folder. \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcannibalox%2Fmovie-cli-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcannibalox%2Fmovie-cli-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcannibalox%2Fmovie-cli-2/lists"}