Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
audio-renamer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
audio-renamer
Compare revisions
79e039b92ed474f911a2e95ed0b4fdce22b90b78 to 48651695d9b53cd8e789238a8e4b3f3ce9ba49d0
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
justJanne/audio-renamer
Select target project
No results found
48651695d9b53cd8e789238a8e4b3f3ce9ba49d0
Select Git revision
Swap
Target
justJanne/audio-renamer
Select target project
justJanne/audio-renamer
1 result
79e039b92ed474f911a2e95ed0b4fdce22b90b78
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
build: switch to pipenv
· e4a7a427
Janne Mareike Koschinski
authored
1 year ago
e4a7a427
fix: correctly handle flac with split total numbers
· 48651695
Janne Mareike Koschinski
authored
1 year ago
48651695
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Pipfile
+13
-0
13 additions, 0 deletions
Pipfile
Pipfile.lock
+36
-0
36 additions, 0 deletions
Pipfile.lock
extractors/FlacExtractor.py
+7
-4
7 additions, 4 deletions
extractors/FlacExtractor.py
with
56 additions
and
4 deletions
Pipfile
0 → 100644
View file @
48651695
[[source]]
url
=
"https://pypi.org/simple"
verify_ssl
=
true
name
=
"pypi"
[packages]
mutagen
=
"*"
urwid
=
"*"
[dev-packages]
[requires]
python_version
=
"3.11"
This diff is collapsed.
Click to expand it.
Pipfile.lock
0 → 100644
View file @
48651695
{
"_meta"
:
{
"hash"
:
{
"sha256"
:
"47467328fdd8e1fdcc63ccab3fe3cdc8053b79ed24e0192f8861b4aded150eb8"
},
"pipfile-spec"
:
6
,
"requires"
:
{
"python_version"
:
"3.11"
},
"sources"
:
[
{
"name"
:
"pypi"
,
"url"
:
"https://pypi.org/simple"
,
"verify_ssl"
:
true
}
]
},
"default"
:
{
"mutagen"
:
{
"hashes"
:
[
"sha256:6e5f8ba84836b99fe60be5fb27f84be4ad919bbb6b49caa6ae81e70584b55e58"
,
"sha256:8af0728aa2d5c3ee5a727e28d0627966641fddfe804c23eabb5926a4d770aed5"
],
"index"
:
"pypi"
,
"version"
:
"==1.46.0"
},
"urwid"
:
{
"hashes"
:
[
"sha256:588bee9c1cb208d0906a9f73c613d2bd32c3ed3702012f51efe318a3f2127eae"
],
"index"
:
"pypi"
,
"version"
:
"==2.1.2"
}
},
"develop"
:
{}
}
This diff is collapsed.
Click to expand it.
extractors/FlacExtractor.py
View file @
48651695
...
...
@@ -4,6 +4,7 @@ from mutagen.flac import FLAC
from
extractors.MediaExtractor
import
MediaExtractor
from
models.TrackMeta
import
TrackMeta
from
util.extract_numbers
import
extract_numbers
from
util.optional_map
import
optional_map
...
...
@@ -21,6 +22,8 @@ class FlacExtractor(MediaExtractor):
return
None
def
extract_tags
(
self
)
->
TrackMeta
:
discnumber
,
disctotal
=
optional_map
(
self
.
extract_tag
(
'
discnumber
'
),
extract_numbers
)
tracknumber
,
tracktotal
=
optional_map
(
self
.
extract_tag
(
'
tracknumber
'
),
extract_numbers
)
return
TrackMeta
(
album
=
self
.
extract_tag
(
'
album
'
),
albumsort
=
self
.
extract_tag
(
'
albumsort
'
),
...
...
@@ -29,14 +32,14 @@ class FlacExtractor(MediaExtractor):
artist
=
self
.
extract_tag
(
'
artist
'
),
artistsort
=
self
.
extract_tag
(
'
artistsort
'
),
catalognumber
=
self
.
extract_tag
(
'
catalognumber
'
),
discnumber
=
optional_map
(
self
.
extract_tag
(
'
discnumber
'
),
int
)
,
disctotal
=
optional_map
(
self
.
extract_tag
(
'
disctotal
'
),
int
),
discnumber
=
discnumber
,
disctotal
=
optional_map
(
self
.
extract_tag
(
'
disctotal
'
),
int
)
or
disctotal
,
label
=
self
.
extract_tag
(
'
label
'
),
media
=
self
.
extract_tag
(
'
media
'
),
originaldate
=
self
.
extract_tag
(
'
originaldate
'
),
originalyear
=
self
.
extract_tag
(
'
originalyear
'
),
title
=
self
.
extract_tag
(
'
title
'
),
titlesort
=
self
.
extract_tag
(
'
titlesort
'
),
tracknumber
=
optional_map
(
self
.
extract_tag
(
'
tracknumber
'
),
int
)
,
tracktotal
=
optional_map
(
self
.
extract_tag
(
'
tracktotal
'
),
int
),
tracknumber
=
tracknumber
,
tracktotal
=
optional_map
(
self
.
extract_tag
(
'
tracktotal
'
),
int
)
or
tracktotal
,
)
This diff is collapsed.
Click to expand it.