~jendrikseipp/pogo/github-mirror

« back to all changes in this revision

Viewing changes to benchmarks/id3.py

  • Committer: GitHub
  • Author(s): Jendrik Seipp
  • Date: 2017-07-16 15:22:48 UTC
  • mfrom: (695.1.4)
  • Revision ID: git-v1:08a9790f5259c0afc6beb390a10358e104e209c9
Merge pull request #42 from jendrikseipp/pep8

Fix code style (PEP8)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
    mp3File = MP3(FILE)
15
15
 
16
 
    length     = int(round(mp3File.info.length))
17
 
    bitrate    = int(mp3File.info.bitrate)
18
 
    #samplerate = int(mp3File.info.sample_rate)
 
16
    length = int(round(mp3File.info.length))
 
17
    bitrate = int(mp3File.info.bitrate)
19
18
 
20
19
    id3 = ID3(FILE)
21
20
 
34
33
    tag.title
35
34
    tag.track
36
35
    myfile.duration
37
 
    #myfile.bitrate
38
 
    #myfile.sample_rate
39
36
 
40
37
 
41
38
def hsaudiotag_auto():
46
43
    myfile.title
47
44
    myfile.track
48
45
    myfile.duration
49
 
    #myfile.bitrate
50
 
    #myfile.sample_rate
51
46
 
52
47
 
53
48
timers = ['mutagen', 'hsaudiotag', 'hsaudiotag_auto']