Skip to content

Commit

Permalink
2.8.046
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanjacobd committed May 27, 2024
1 parent 46be0c7 commit 4b316e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ To stop playing press Ctrl+C in either the terminal or mpv
<details><summary>List all subcommands</summary>

$ library
library (v2.8.045; 77 subcommands)
library (v2.8.046; 77 subcommands)

Create database subcommands:
╭───────────────┬──────────────────────────────────────────╮
Expand Down
2 changes: 1 addition & 1 deletion xklb/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.8.045"
__version__ = "2.8.046"
4 changes: 3 additions & 1 deletion xklb/createdb/av.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from datetime import datetime
from pathlib import Path

from yt_dlp.utils import traverse_obj

from xklb.createdb import subtitle
from xklb.mediafiles import media_check
from xklb.utils import consts, file_utils, iterables, nums, objects, processes, strings
Expand All @@ -9,7 +11,7 @@


def is_album_art(s):
return s.get("disposition", {}).get("attached_pic", 0) == 1
return traverse_obj(s, "disposition", "attached_pic") == 1


def get_subtitle_tags(path, streams, codec_types, scan_subtitles=False) -> dict:
Expand Down

0 comments on commit 4b316e3

Please sign in to comment.