File: test_framedumper.py

package info (click to toggle)
tagpy 2025.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 408 kB
  • sloc: cpp: 1,011; python: 541; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pathlib
import tagpy
import tagpy.mpeg


def test_framedumper():
    f = tagpy.FileRef(str(pathlib.Path(__file__).parent.joinpath("la.mp3")))
    t = f._file.ID3v2Tag()

    for frame_type in list(t.frameListMap().keys()):
        print(frame_type)
        frame_list = t.frameListMap()[frame_type]
        for frame in frame_list:
            print("  %s" % frame.toString())