Giter VIP home page Giter VIP logo

bazarr-bulk's Issues

Error: reqwest::Error

I get following Error trying to run any command:

Bazarr API is healthy.
Error: reqwest::Error { kind: Decode, source: Error("expected value", line: 4, column: 1) }

Bazarr is V1.4.2 on k3s behind traefik with authentik (/api is excluded from authentik)

{ "host": "bazarr.local.REDACTED", "protocol": "https", "port": "443", "apiKey": "REDACTED" }

Tried from Pop!OS 22.04 with bazarr-bulk 0.1.2 (installed automatically or manually, same issue)

Investigate system dependencies required to run bazarr-bulk

  • On debian, installation fails because it's missing libssl-dev (sudo apt install libssl-dev)

  • On Alpine, installation fails because it's missing openssl-dev (apk add --update openssl-dev)

  • On Alpine, installation fails again with some other error:
    = note: /usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lssl: No such file or directory /usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lcrypto: No such file or directory collect2: error: ld returned 1 exit status

  • Manual install on Alpine throws an error: bash: /usr/local/bin/bb: cannot execute: required file not found

Get progress to show if ran as a systemd script

I want to run your program in my Manage Subtitles script that is ran daily using a systemd service and I'd like to see the progress in the logs.

Right now, it only shows this when I do journalctl -feu manage-subs

Bazarr Bulk CLI v0.1.4
Bazarr API URL: http://127.0.0.1:6767/bazarr/api
Bazarr API is healthy.

The actual progress is no where to be seen even though the program actually works.

Maybe a -v flag that doesn't clear the output at every item?

Add --max-retries and --retry-interval flags

Hey, sometimes the connection to Bazarr can be interrupted due to updates, restarts, network upgrades, etc.

It would be really nice if we can define --max-retries and --retry-interval flags.

Restarting a sync from scratch is extremely time consuming especially with large libraries.

Windows - reqwest error

Running bb.exe on a Windows 10 machine, using the following command (elevated prompt):

bb.exe --config D:\utilities\bb\config.json movies sync

returns this error:

Error: reqwest::Error { kind: Decode, source: Error("invalid type: null, expected a string", line: 1, column: 351761) }

the config file contents are:

{
  "host": "192.168.1.165",
  "protocol": "http",
  "port": "6767",
  "apiKey": "****redacted****"
}

Add option to run actions on a specific list of items.

It would be nice to be able to specify a list of movies or tv-shows that we want the actions to be performed on instead of the current --offset and --limit flags.

For example, a comma separated list of IDs passed to a flag like so:

bb --config /path/to/config.json movies sync --items 123,78,2001

The IDs I'm talking about are the ones in the url of a specific show or movie in the webUI of bazarr.
So this command would sync only the movies with the ID 123, 78 and 2001.

skip empty/embedded movies/tv-shows

When the tv show or the movie is unmonitered (and therefore no subtitles are downloaded) the script stops and end the tasks with (no episodes found or something like that.

this is extremely helpful when you are having multiple instances of radarr and sonarr and you sync them with import lists to avoid duplicate entries in a library

I would love to contribute but unfortunatly I don't know rust.

Could not compile error

Can't install the program.
Running in an Ubuntu docker container (ubuntu:latest)
I ran these commands:
apt-get update && apt-get install curl -y
curl https://sh.rustup.rs -sSf | sh
/bin/bash (to restart shell)
cargo install bazarr-bulk

Help is much appreciated!

Output:

root@5b238d321513:/# cargo install bazarr-bulk
    Updating crates.io index
  Downloaded bazarr-bulk v0.1.4
  Downloaded 1 crate (22.8 KB) in 0.06s
  Installing bazarr-bulk v0.1.4
    Updating crates.io index
  Downloaded addr2line v0.21.0
  Downloaded anstream v0.6.14
  Downloaded adler v1.0.2
  Downloaded clap_derive v4.5.4
  Downloaded console v0.15.8
  Downloaded clap v4.5.4
  Downloaded generic-array v0.14.7
  Downloaded futures-core v0.3.30
  Downloaded rand_chacha v0.3.1
  Downloaded futures-macro v0.3.30
  Downloaded chrono v0.4.38
  Downloaded json5 v0.4.1
  Downloaded serde v1.0.202
  Downloaded tinyvec_macros v0.1.1
  Downloaded tower-service v0.3.2
  Downloaded pin-utils v0.1.0
  Downloaded sync_wrapper v0.1.2
  Downloaded mime v0.3.17
  Downloaded futures-io v0.3.30
  Downloaded ryu v1.0.18
  Downloaded want v0.3.1
  Downloaded strsim v0.11.1
  Downloaded signal-hook-registry v1.4.2
  Downloaded thiserror-impl v1.0.61
  Downloaded pest_generator v2.7.10
  Downloaded pest_derive v2.7.10
  Downloaded pathdiff v0.2.1
  Downloaded pin-project-lite v0.2.14
  Downloaded tokio-macros v2.2.0
  Downloaded version_check v0.9.4
  Downloaded num-traits v0.2.19
  Downloaded try-lock v0.2.5
  Downloaded proc-macro2 v1.0.83
  Downloaded untrusted v0.9.0
  Downloaded scopeguard v1.2.0
  Downloaded retry-policies v0.3.0
  Downloaded rand v0.8.5
  Downloaded hashbrown v0.12.3
  Downloaded tracing-attributes v0.1.27
  Downloaded reqwest-middleware v0.2.5
  Downloaded rustls-pemfile v1.0.4
  Downloaded reqwest-tracing v0.4.8
  Downloaded unicode-width v0.1.12
  Downloaded toml v0.8.13
  Downloaded serde_derive v1.0.202
  Downloaded rustc-demangle v0.1.24
  Downloaded uuid v1.8.0
  Downloaded yaml-rust v0.4.5
  Downloaded ron v0.7.1
  Downloaded url v2.5.0
  Downloaded toml_edit v0.22.13
  Downloaded rustls-webpki v0.101.7
  Downloaded rustls v0.21.12
  Downloaded libc v0.2.155
  Downloaded serde_json v1.0.117
  Downloaded tokio v1.37.0
  Downloaded reqwest v0.11.27
  Downloaded encoding_rs v0.8.34
  Downloaded webpki-roots v0.25.4
  Downloaded unicode-normalization v0.1.23
  Downloaded tokio-util v0.7.11
  Downloaded syn v2.0.65
  Downloaded object v0.32.2
  Downloaded tracing v0.1.40
  Downloaded idna v0.5.0
  Downloaded gimli v0.28.1
  Downloaded tracing-core v0.1.32
  Downloaded typenum v1.17.0
  Downloaded unicode-ident v1.0.12
  Downloaded unicode-bidi v0.3.15
  Downloaded ucd-trie v0.1.6
  Downloaded toml v0.5.11
  Downloaded socket2 v0.5.7
  Downloaded ring v0.17.8
  Downloaded hyper v0.14.28
  Downloaded nom v7.1.3
  Downloaded portable-atomic v1.6.0
  Downloaded tinyvec v1.6.0
  Downloaded pest v2.7.10
  Downloaded reqwest-retry v0.4.0
  Downloaded rust-ini v0.18.0
  Downloaded hashbrown v0.14.5
  Downloaded tokio-rustls v0.24.1
  Downloaded minimal-lexical v0.2.1
  Downloaded futures-util v0.3.30
  Downloaded sha2 v0.10.8
  Downloaded mio v0.8.11
  Downloaded memchr v2.7.2
  Downloaded indexmap v2.2.6
  Downloaded rand_core v0.6.4
  Downloaded pest_meta v2.7.10
  Downloaded toml_datetime v0.6.6
  Downloaded thiserror v1.0.61
  Downloaded spin v0.9.8
  Downloaded smallvec v1.13.2
  Downloaded sct v0.7.1
  Downloaded miniz_oxide v0.7.3
  Downloaded parking_lot v0.12.2
  Downloaded log v0.4.21
  Downloaded indicatif v0.17.8
  Downloaded h2 v0.3.26
  Downloaded utf8parse v0.2.1
  Downloaded unicase v2.7.0
  Downloaded task-local-extensions v0.1.4
  Downloaded slab v0.4.9
  Downloaded os_info v3.8.2
  Downloaded num_cpus v1.16.0
  Downloaded serde_spanned v0.6.6
  Downloaded lock_api v0.4.12
  Downloaded percent-encoding v2.3.1
  Downloaded once_cell v1.19.0
  Downloaded matchit v0.7.3
  Downloaded ipnet v2.9.0
  Downloaded iana-time-zone v0.1.60
  Downloaded hyper-rustls v0.24.2
  Downloaded parking_lot_core v0.9.10
  Downloaded ordered-multimap v0.4.3
  Downloaded http v0.2.12
  Downloaded httparse v1.8.0
  Downloaded serde_urlencoded v0.7.1
  Downloaded linked-hash-map v0.5.6
  Downloaded itoa v1.0.11
  Downloaded futures-executor v0.3.30
  Downloaded quote v1.0.36
  Downloaded mime_guess v2.0.4
  Downloaded lazy_static v1.4.0
  Downloaded futures-task v0.3.30
  Downloaded ppv-lite86 v0.2.17
  Downloaded number_prefix v0.4.0
  Downloaded is_terminal_polyfill v1.70.0
  Downloaded human-panic v1.2.3
  Downloaded httpdate v1.0.3
  Downloaded http-body v0.4.6
  Downloaded getrandom v0.2.15
  Downloaded heck v0.5.0
  Downloaded futures-sink v0.3.30
  Downloaded config v0.13.4
  Downloaded bytes v1.6.0
  Downloaded clap_builder v4.5.2
  Downloaded dlv-list v0.3.0
  Downloaded crypto-common v0.1.6
  Downloaded cpufeatures v0.2.12
  Downloaded futures-channel v0.3.30
  Downloaded digest v0.10.7
  Downloaded colorchoice v1.0.1
  Downloaded clap_lex v0.7.0
  Downloaded backtrace v0.3.71
  Downloaded autocfg v1.3.0
  Downloaded anstyle v1.0.7
  Downloaded futures v0.3.30
  Downloaded form_urlencoded v1.2.1
  Downloaded fnv v1.0.7
  Downloaded equivalent v1.0.1
  Downloaded cfg-if v1.0.0
  Downloaded block-buffer v0.10.4
  Downloaded bitflags v1.3.2
  Downloaded base64 v0.21.7
  Downloaded base64 v0.13.1
  Downloaded anstyle-parse v0.2.4
  Downloaded cc v1.0.98
  Downloaded async-trait v0.1.80
  Downloaded ahash v0.7.8
  Downloaded anyhow v1.0.86
  Downloaded anstyle-query v1.0.3
  Downloaded 164 crates (15.3 MB) in 0.79s (largest was `ring` at 4.2 MB)
   Compiling proc-macro2 v1.0.83
   Compiling unicode-ident v1.0.12
   Compiling libc v0.2.155
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.3.0
   Compiling version_check v0.9.4
   Compiling serde v1.0.202
   Compiling memchr v2.7.2
   Compiling cc v1.0.98
   Compiling pin-project-lite v0.2.14
   Compiling thiserror v1.0.61
error: linker `cc` not found
  |
  = note: No such file or directory (os error 2)

error: could not compile `serde` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `proc-macro2` (build script) due to 1 previous error
error: could not compile `libc` (build script) due to 1 previous error
error: could not compile `thiserror` (build script) due to 1 previous error
error: failed to compile `bazarr-bulk v0.1.4`, intermediate artifacts can be found at `/tmp/cargo-installkNBEQw`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Windows/Linux Reqwest Error

When attempting to use the script on Windows 10, I get this error message in command prompt and PowerShell stating, "Error: reqwest::Error { kind: Decode, source: Error("invalid type: null, expected a string", line: 1, column: 5030) }". I have the "bb" and "config.json" file in the Downloads directory. Below is an output from PowerShell.

PS C:\Users\User1\Downloads> ls
Directory: C:\Users\User1\Downloads

Mode LastWriteTime Length Name


d----- 1/22/2024 7:08 AM bazarr-bulk_v.0.1.1_x86_64-pc-windows-gnu
-a---- 1/22/2024 7:08 AM 5306389 bazarr-bulk_v.0.1.1_x86_64-pc-windows-gnu.zip
-a---- 1/7/2024 2:02 PM 16944547 bb.exe
-a---- 1/22/2024 7:25 AM 118 config.json

PS C:\Users\User1\Downloads> .\bb.exe --config .\config.json tv-shows sync
Error: reqwest::Error { kind: Decode, source: Error("invalid type: null, expected a string", line: 1, column: 5030) }

Configuration File:

{
"host": "192.168.30.37",
"protocol": "http",
"port": "6767",
"apiKey": "REMOVED"
}

Movies offset

Hello. How are you doing ? First of all, thanks for creating this tool of mass sync.

Im having an issue with this tool, i had to restart my computer and i used the -offset to skip the ones that i already synced, but it seems that it didn't work. Is this option working?. Here is a screenshot: https://imgur.com/a/PGWc4fc
bazarr-bulk

You can tell that my library its on the big side, almost 6000 and each one has 4 different languages, so if i resync everything its gonna take me a lot of days.

Thanks again for the tool.

Mod Sync not loaded

I am running it on linux using bazarr 1.4.2.
I ran on all movies, it connects and goes over the list but in the logs of bazarr for every movie i get "Mod Sync not loaded"

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.