All pastes #1020558 Raw Edit

Anonymous

public text v1 · immutable
#1020558 ·published 2008-05-16 21:23 UTC
rendered paste body
class optionsobj:
    pass

options = optionsobj()
options.makecache = False #Set to true to make the cache by defualt
options.cachedir = u'cache\\' #dir to store cached data
options.type = u'MP3' #type of file to scan defaults to all audio types
#options.type = u'FLAC' #type of file to scan defaults to all audio types

options.log = optionsobj()
options.log.toconsole = True #Set to true to dump all log information to the console while running
options.log.taginfointorrents = True #Set to true to dump the missing tag info into the torrent log file for torrents not uploaded because of missing tags
options.log.logdir = u'logs\\' #dir to store logs/output

options.bittorrent = optionsobj()
options.bittorrent.startseeding = True #Set to true to start seeding uploaded torrents
options.bittorrent.clientpath = u'C:\\Program Files\\uTorrent\\uTorrent.exe' #path to your bittorrent client executable
options.bittorrent.loadcmd = r'""%(exe)s" /directory "%(save)s" "%(torrent)s""' #command line command to open torrent %(torrent)s with client %(exe)s and seed from %(save)s, these values are automaticaly filled in
options.bittorrent.createtorrents = True #Set to true to create torrent files for dirs found, CREATING TORRENTS IS SLOW, BE PATIENT
options.bittorrent.renamedirs = True #WARNING some clients will not work if this is true, this rename the torrent folder to 'artist - album' in the torrent, this will not rename your folder.
options.bittorrent.piecesize = 19 #512kbytes.Piece size of created torrents, DO NOT CHANGE
options.bittorrent.torrentdir = u'torrents\\' #dir to save torrents in
options.bittorrent.ignoreextentions = u'db !ut dat' #space seperated list of file extensions to ignore
options.bittorrent.uploadtorrents = True #Set to true to try and upload torrents to the sites in options.sites if they have upload enabled
options.bittorrent.requireconfirmation = False #If True requires the user to confirm that uploads are or are not dupes before continuing
options.bittorrent.beeponupload = False #Prints a bell charater that should make a beep when a torrent is uploaded

options.sites = [u'what'] #list of classes of sites to upload to

options.what = optionsobj()
options.what.announce = u'http://tracker.what.cd:34000/PASSKEY/announce' #your what.cd announce url
options.what.username = u'USERNAME' #your what.cd username
options.what.password = u'PASSWORD' #your what.cd password
options.what.offlinemode = False #Enable/Disable offlines mode, when in offline mode to connections will be made to the site and some thing like searches/automatic category will not work
options.what.uploadenabled = True #Enabled/Disable uploading torrents to what.cd
options.what.searchenabled = True #Enabled/Disable running search queries on what.cd
options.what.usecache = True #Enabled/Disable search caching WARNING it will not use the cache if upload is enabled
options.what.category = None #Default category for torrents uploaded to what.cd, default = None, do not change unless you are sure everything you are uploading belongs to that category
options.what.foobarformat = True #Set to true to use foobar2000's custom formatting for strings like description
options.what.getmusicbrainz = True #Set to true to use pull additional album information from musicbrainz service for formating the description (requires you are using foobar formatting)
options.what.descrhead = u"""
'[b][size=4]'$if2(%album artist%,%artist%) - %album%'[/size][/b]'$br()
'[b]Release: [/b]'$if2(%musicbrainz_date%,%date%)$br()
['[b]Label: [/b]'%musicbrainz_label%$br()]
['[b]Country: [/b]'%musicbrainz_country%$br()]
['[b]Type: [/b]'%musicbrainz_type%$br()]
'[b]Length: [/b]'$time('%H:%M:%S',%lengthseconds%)$br()$br()
'[b][size=3]Tracklist:[/size][/b]'
"""

options.what.descreach = u"""
'[b]'%tracknumber%'. [/b]'%artist% - %title%' ('%_length%')'
"""

options.what.descrtail = u"""
$br()'For a better [b]what.cd[/b] experience, install [b]OiNKPlus[/b] from http://oinkplus.blogspot.com/'$br()$br()'Thanks to the original ripper!'
"""