Fix stuff
This commit is contained in:
@@ -34,7 +34,6 @@ Formats:
|
||||
"""
|
||||
|
||||
import atexit, time, sys, urllib.request, os
|
||||
from logging import DEBUG
|
||||
from docopt import docopt
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.support.ui import Select
|
||||
@@ -136,6 +135,7 @@ def download_album(url):
|
||||
init_driver()
|
||||
driver.get(url)
|
||||
wait()
|
||||
try:
|
||||
button = driver.find_element_by_xpath(xpath['buy'])
|
||||
if button.text == 'Free Download':
|
||||
logger.info('Album is Free Download')
|
||||
@@ -172,6 +172,8 @@ def download_album(url):
|
||||
wait()
|
||||
checkout.click()
|
||||
logger.info(f'Download link sent to {options["email"]}')
|
||||
except Exception as e:
|
||||
return e
|
||||
|
||||
|
||||
def download_label(url):
|
||||
|
||||
@@ -5,12 +5,11 @@ import free_bandcamp_downloader
|
||||
setup(
|
||||
name='free-bandcamp-downloader',
|
||||
version=free_bandcamp_downloader.__version__,
|
||||
packaged=find_packages(),
|
||||
packaged=['free_bandcamp_downloader'],
|
||||
author='7x11x13',
|
||||
install_requires=[
|
||||
'selenium',
|
||||
'docopt',
|
||||
'rfc6266'
|
||||
'docopt'
|
||||
],
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
|
||||
Reference in New Issue
Block a user