aboutsummaryrefslogtreecommitdiff

hoarder

hoarder lets you organise your collection of video metadata

Install

Dependencies: git, ghc, stack

$ git clone https://git.gueux.org/hoarder.git
$ cd hoarder
$ stack build
$ stack install
$

hoader-server

hoarder-server should be running before you can use hoarder-client-cli.

$ hoarder &
$

Example session

$ hoarder-client-cli movie imdb search "The Third Man"
Le troisième homme (1949): tt0041959
Third Man (2016): tt3229434
The Third Miracle (1999): tt0174268
Le troisième homme sur la montagne (1959): tt0053352
Collins: The Third Man (1993): tt0106587
The Third Mind (2000): tt0452875
Third of a Man (1962): tt0056577
The Third Woman (1920): tt0011763
The Third Monday in October (2006): tt0905373
Le secret du Docteur Whitset (1964): tt0058649
Totò terzo uomo (1951): tt0044142
Third Party President: Citizen Rocky (2016): tt1326197
$ hoarder-client-cli movie imdb get --wikidata --file /media/video/MOVIES/The\ Third\ Man\ -\ 1949.mkv tt0041959
The Third Man (1949) [100/94/83]
Synopsis: An out of work pulp fiction novelist, Holly Martins, arrives in a post war Vienna divided into sectors by the victorious allies, and where a shortage of supplies has lead to a flourishing black market. He arrives at the invitation of an ex-school friend, Harry Lime, who has offered him a job, only to discover that Lime has recently died in a peculiar traffic accident. From talking to Lime's friends and associates Martins soon notices that some of the stories are inconsistent, and determines to discover what really happened to Harry Lime.
Rating: Unrated
Runtime: 104min
Directors: Carol Reed
Writers: Graham Greene, Graham Greene, Orson Welles, Alexander Korda, Carol Reed
Actors: Joseph Cotten (Holly Martins), Alida Valli (Anna Schmidt), Orson Welles (Harry Lime), Trevor Howard (Maj. Calloway), Bernard Lee (Sgt. Paine), Paul Hörbiger (Karl - Harry's Porter (as Paul Hoerbiger)), Ernst Deutsch ('Baron' Kurtz), Siegfried Breuer (Popescu), Erich Ponto (Dr. Winkel), Wilfrid Hyde-White (Crabbin), Hedwig Bleibtreu (Anna's Old Landlady)
Countries: UK
Languages: English, German, Russian
Genres: Film-Noir, Mystery, Thriller
Studio: Rialto Pictures
RottenTomatoesId: /m/the-third-man/
Filename: /mnt/sshfs/boudin/video/MOVIES/The Third Man - 1949.mkv
    Format:   matroska,webm
    Duration: 6313.45s
    Size:     732280330b
    Streams:
        Video:
            Index:      0
            Codec:      h264
            Dimensions: 960x720
        Audio:
            Index:          1
            Codec:          aac
            Rate:           48000
            Channels:       2
            Channel Layout: stereo
            Language:       eng
        Subtitle:
            Index:    2
            Codec:    srt
            Language: eng
        Subtitle:
            Index:    3
            Codec:    srt
            Language: fre
        Subtitle:
            Index:    4
            Codec:    srt
            Language: spa
$ hoarder-client-cli movie imdb add --rottentomatoes /m/the-third-man/ --file /media/video/MOVIES/The\ Third\ Man\ -\ 1949.mkv tt0041959
1
$ hoarder-client-cli movie list
The Third Man (1949) [100/94/83]
$ hoarder-client-cli movie get 1
The Third Man (1949) [100/94/83]
Synopsis: An out of work pulp fiction novelist, Holly Martins, arrives in a post war Vienna divided into sectors by the victorious allies, and where a shortage of supplies has lead to a flourishing black market. He arrives at the invitation of an ex-school friend, Harry Lime, who has offered him a job, only to discover that Lime has recently died in a peculiar traffic accident. From talking to Lime's friends and associates Martins soon notices that some of the stories are inconsistent, and determines to discover what really happened to Harry Lime.
Rating: Unrated
Runtime: 104min
Directors: Carol Reed
Writers: Graham Greene, Graham Greene, Orson Welles, Alexander Korda, Carol Reed
Actors: Joseph Cotten (Holly Martins), Alida Valli (Anna Schmidt), Orson Welles (Harry Lime), Trevor Howard (Maj. Calloway), Bernard Lee (Sgt. Paine), Paul Hörbiger (Karl - Harry's Porter (as Paul Hoerbiger)), Ernst Deutsch ('Baron' Kurtz), Siegfried Breuer (Popescu), Erich Ponto (Dr. Winkel), Wilfrid Hyde-White (Crabbin), Hedwig Bleibtreu (Anna's Old Landlady)
Countries: UK
Languages: English, German, Russian
Genres: Film-Noir, Mystery, Thriller
Studio: Rialto Pictures
RottenTomatoesId: /m/the-third-man/
Filename: /mnt/sshfs/boudin/video/MOVIES/The Third Man - 1949.mkv
    Format:   matroska,webm
    Duration: 6313.45s
    Size:     732280330b
    Streams:
        Video:
            Index:      0
            Codec:      h264
            Dimensions: 960x720
        Audio:
            Index:          1
            Codec:          aac
            Rate:           48000
            Channels:       2
            Channel Layout: stereo
            Language:       eng
        Subtitle:
            Index:    2
            Codec:    srt
            Language: eng
        Subtitle:
            Index:    3
            Codec:    srt
            Language: fre
        Subtitle:
            Index:    4
            Codec:    srt
            Language: spa
$ hoarder-client-cli user add "gueux"
1
$ hoarder-client-cli movie seen --username "gueux" --movie 1
$ hoarder-client-cli user get 1
User: gueux
Seen movies:
    The Third Man
$ hoarder-client-cli movie delete 1
$ hoarder-client-cli movie list
$

Bash-completion

You can generate a script to enable bash completion:

$ hoarder-client-cli --bash-completion-script ~/.local/bin/hoarder-client-cli
_hoarder-client-cli()
{
    local cmdline
    CMDLINE=(--bash-completion-index $COMP_CWORD)

    for arg in ${COMP_WORDS[@]}; do
        CMDLINE=(${CMDLINE[@]} --bash-completion-word $arg)
    done

    COMPREPLY=( $(~/.local/bin/hoarder-client-cli "${CMDLINE[@]}") )
}

complete -o filenames -F _hoarder-client-cli hoarder-client-cli