Esempio n. 1
0
    def test_bandcamp_slashes(self):
        for f in glob.glob('*.mp3'):
            os.unlink(f)

        mp3_count = len(glob.glob1('', "*.mp3"))
        vargs = {
            'folders':
            False,
            'group':
            False,
            'track':
            '',
            'num_tracks':
            9223372036854775807,
            'bandcamp':
            False,
            'downloadable':
            False,
            'likes':
            False,
            'open':
            False,
            'artist_url':
            'https://defill.bandcamp.com/track/amnesia-chamber-harvest-skit'
        }
        process_bandcamp(vargs)
        new_mp3_count = len(glob.glob1('', "*.mp3"))
        self.assertTrue(new_mp3_count > mp3_count)

        for f in glob.glob('*.mp3'):
            os.unlink(f)
Esempio n. 2
0
 def test_bandcamp(self):
     rm_mp3()
     mp3_count = len(glob.glob1('', "*.mp3"))
     vargs = {'path':'', 'folders': False, 'group': False, 'track': '', 'num_tracks': 9223372036854775807, 'bandcamp': False, 'downloadable': False, 'likes': False, 'open': False, 'artist_url': 'https://atenrays.bandcamp.com/track/who-u-think'}
     process_bandcamp(vargs)
     new_mp3_count = len(glob.glob1('', "*.mp3"))
     self.assertTrue(new_mp3_count > mp3_count)
     rm_mp3()
Esempio n. 3
0
 def test_bandcamp_html_entities(self):
     rm_mp3()
     vargs = {'path': '', 'folders': False, 'num_tracks': sys.maxsize, 'open': False, 'artist_url': 'https://anaalnathrakh.bandcamp.com/track/man-at-c-a-bonus-track'}
     process_bandcamp(vargs)
     mp3s = glob.glob('*.mp3')
     self.assertEquals(1, len(mp3s))
     fn = mp3s[0]
     self.assertTrue('CandA' in fn)
     t = EasyMP3(fn)['title']
     self.assertTrue('C&A' in t[0])
     rm_mp3()
Esempio n. 4
0
    def test_bandcamp_slashes(self):
        for f in glob.glob('*.mp3'):
           os.unlink(f)

        mp3_count = len(glob.glob1('', "*.mp3"))
        vargs = {'path':'', 'folders': False, 'group': False, 'track': '', 'num_tracks': 9223372036854775807, 'bandcamp': False, 'downloadable': False, 'likes': False, 'open': False, 'artist_url': 'https://defill.bandcamp.com/track/amnesia-chamber-harvest-skit'}
        process_bandcamp(vargs)
        new_mp3_count = len(glob.glob1('', "*.mp3"))
        self.assertTrue(new_mp3_count > mp3_count)

        for f in glob.glob('*.mp3'):
           os.unlink(f)
Esempio n. 5
0
    def test_bandcamp(self):
        for f in glob.glob('*.mp3'):
           os.unlink(f)

        mp3_count = len(glob.glob1('', "*.mp3"))
        vargs = {'path':'', 'folders': False, 'group': False, 'track': '', 'num_tracks': 9223372036854775807, 'bandcamp': False, 'downloadable': False, 'likes': False, 'open': False, 'artist_url': 'https://atenrays.bandcamp.com/track/who-u-think'}
        process_bandcamp(vargs)
        new_mp3_count = len(glob.glob1('', "*.mp3"))
        self.assertTrue(new_mp3_count > mp3_count)

        for f in glob.glob('*.mp3'):
           os.unlink(f)