Skip to content

Commit

Permalink
Some bugs fixed!
Browse files Browse the repository at this point in the history
	modified:   README.md
	modified:   files/about.py
	modified:   files/mainwindow.py
	modified:   files/mainwindow_ui.py
	modified:   files/persepolis
  • Loading branch information
alireza-amirsamimi committed Jan 12, 2017
1 parent d6d54e2 commit f6aa190
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Persepolis Download Manager
=============
+ version : 2.3
+ version : 2.3.1
+ Persepolis Download Manager is a GUI for aria2.
+ Persepolis written in PYQT5.

Expand Down
2 changes: 1 addition & 1 deletion files/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __init__(self,persepolis_setting):

self.setWindowTitle( "About Persepolis")
self.title_label.setText( "Persepolis Download Manager")
self.version_label.setText( "Version 2.3")
self.version_label.setText( "Version 2.3.1")
self.name_label.setText( "\nAliReza AmirSamimi\nMohammadreza Abdollahzadeh\nSadegh Alirezaie\nMostafa Asadi\nMohammadAmin Vahedinia\nJafar Akhondali")
self.site2_label.setText("<a href=https://persepolisdm.github.io>https://persepolisdm.github.io</a>" )
self.telegram_label.setText( "<a href=https://telegram.me/persepolisdm>https://telegram.me/persepolisdm</a>" )
Expand Down
14 changes: 11 additions & 3 deletions files/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ def run(self):
f = Open(queue_file)
queue_file_lines = f.readlines()
f.close()
queue_file_lines.reverse()

if not(self.parent.reverse_checkBox.isChecked()) :
queue_file_lines.reverse()

if self.start_hour != None and counter == 0: # checking that if user set start time
#setting start time for first download in queue
Expand Down Expand Up @@ -366,7 +368,9 @@ def run(self):
self.limit = False
self.limit_changed = False
self.break_for_loop = True #it means that break outer for loop
self.REFRESHTOOLBARSIGNAL.emit(self.category)

if str(self.parent.category_tree.currentIndex().data()) == str(self.category) :
self.REFRESHTOOLBARSIGNAL.emit(self.category)

#showing notification
notifySend("Persepolis" , "Queue Stopped!", 10000 , 'no', systemtray = self.parent.system_tray_icon )
Expand Down Expand Up @@ -396,7 +400,9 @@ def run(self):
self.limit = False
self.limit_changed = False
self.after = False
self.REFRESHTOOLBARSIGNAL.emit(self.category)
if str(self.parent.category_tree.currentIndex().data()) == str(self.category) :
self.REFRESHTOOLBARSIGNAL.emit(self.category)




Expand Down Expand Up @@ -693,6 +699,8 @@ def __init__(self , start_in_tray , persepolis_main , persepolis_setting):
self.resize(size)
self.move(position)

#check reverse_checkBox
self.reverse_checkBox.setChecked(False)

# startAriaMessage function is showing some message on statusbar and sending notification when aria failed to start! see StartAria2Thread for more details
def startAriaMessage(self,message):
Expand Down
6 changes: 6 additions & 0 deletions files/mainwindow_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ def __init__(self , persepolis_setting):

start_verticalLayout.addWidget(self.end_frame)

self.reverse_checkBox = QCheckBox(self)
start_verticalLayout.addWidget(self.reverse_checkBox)


queue_panel_verticalLayout.addWidget(self.start_end_frame)

#limit_after_frame
Expand Down Expand Up @@ -572,6 +576,8 @@ def __init__(self , persepolis_setting):
self.end_checkBox.setText( "End Time")
self.end_label.setText( ":")

self.reverse_checkBox.setText("Download older\n items first")

self.limit_checkBox.setText( "Limit Speed")
self.limit_comboBox.setItemText(0, "KB/S")
self.limit_comboBox.setItemText(1, "MB/S")
Expand Down
5 changes: 3 additions & 2 deletions files/persepolis
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ parser.add_argument('--name',action='store',nargs = 1 , help='The file name o
parser.add_argument('--default',action='store_true',help='restore default setting' )
parser.add_argument('--clear',action='store_true',help='Clear download list and user setting!' )
parser.add_argument('--tray',action='store_true',help="Persepolis is starting in tray icon. It's useful when you want to put persepolis in system's startup." )
parser.add_argument('--version', action='version', version='Persepolis Download Manager 2.3')
parser.add_argument('--version', action='version', version='Persepolis Download Manager 2.3.1')
args = parser.parse_args()

#Mozilla firefox flashgot will send download information whith terminal arguments(link , referer , cookie , agent , headers , name )
Expand Down Expand Up @@ -239,7 +239,8 @@ if not (os.path.isfile(lock_file)): #if lock_file is existed , it means persepol
#Resetting persepolis
error_window = ErrorWindow(str(traceback.format_exc()))
error_window.show()

osCommands.remove(lock_file)

sys.exit(persepolis_download_manager.exec_())

else:
Expand Down

0 comments on commit f6aa190

Please sign in to comment.