trackma 0.6.2__py3.4.egg → 0.7.1__py3.4.egg
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- EGG-INFO/PKG-INFO +1 -1
- EGG-INFO/SOURCES.txt +10 -6
- EGG-INFO/requires.txt +0 -2
- trackma/__pycache__/__init__.cpython-34.pyc +0 -0
- trackma/__pycache__/accounts.cpython-34.pyc +0 -0
- trackma/__pycache__/data.cpython-34.pyc +0 -0
- trackma/__pycache__/engine.cpython-34.pyc +0 -0
- trackma/__pycache__/messenger.cpython-34.pyc +0 -0
- trackma/__pycache__/utils.cpython-34.pyc +0 -0
- trackma/data/kitsu.png +0 -0
- trackma/data.py +26 -16
- trackma/engine.py +68 -17
- trackma/extras/AnimeInfoExtractor.py +1 -1
- trackma/extras/__pycache__/AnimeInfoExtractor.cpython-34.pyc +0 -0
- trackma/extras/__pycache__/__init__.cpython-34.pyc +0 -0
- trackma/lib/__pycache__/__init__.cpython-34.pyc +0 -0
- trackma/lib/__pycache__/lib.cpython-34.pyc +0 -0
- trackma/lib/__pycache__/libanilist.cpython-34.pyc +0 -0
- trackma/lib/__pycache__/libkitsu.cpython-34.pyc +0 -0
- trackma/lib/__pycache__/libmal.cpython-34.pyc +0 -0
- trackma/lib/__pycache__/libshikimori.cpython-34.pyc +0 -0
- trackma/lib/__pycache__/libvndb.cpython-34.pyc +0 -0
- trackma/lib/libanilist.py +3 -3
- trackma/lib/libkitsu.py +507 -0
- trackma/lib/libmal.py +6 -6
- trackma/lib/libshikimori.py +3 -3
- trackma/lib/libvndb.py +12 -9
- trackma/messenger.py +1 -1
- trackma/tracker/__init__.py +0 -0
- trackma/tracker/__pycache__/__init__.cpython-34.pyc +0 -0
- trackma/tracker/__pycache__/inotify.cpython-34.pyc +0 -0
- trackma/tracker/__pycache__/inotifyBase.cpython-34.pyc +0 -0
- trackma/tracker/__pycache__/plex.cpython-34.pyc +0 -0
- trackma/tracker/__pycache__/polling.cpython-34.pyc +0 -0
- trackma/tracker/__pycache__/pyinotify.cpython-34.pyc +0 -0
- trackma/tracker/__pycache__/tracker.cpython-34.pyc +0 -0
- trackma/tracker/__pycache__/win32.cpython-34.pyc +0 -0
- trackma/tracker/inotify.py +69 -0
- trackma/tracker/inotifyBase.py +110 -0
- trackma/tracker/plex.py +106 -0
- trackma/tracker/polling.py +55 -0
- trackma/tracker/pyinotify.py +90 -0
- trackma/tracker/tracker.py +221 -0
- trackma/tracker/win32.py +74 -0
- trackma/ui/__pycache__/__init__.cpython-34.pyc +0 -0
- trackma/ui/__pycache__/cli.cpython-34.pyc +0 -0
- trackma/ui/__pycache__/curses.cpython-34.pyc +0 -0
- trackma/ui/__pycache__/gtkui.cpython-34.pyc +0 -0
- trackma/ui/__pycache__/qt4ui.cpython-34.pyc +0 -0
- trackma/ui/__pycache__/qtui.cpython-34.pyc +0 -0
- trackma/ui/cli.py +110 -13
- trackma/ui/curses.py +88 -30
- trackma/ui/gtkui.py +120 -58
- trackma/ui/qtui.py +161 -49
- trackma/utils.py +16 -9
- trackma/__pycache__/tracker.cpython-34.pyc +0 -0
- trackma/data/hb.jpg +0 -0
- trackma/data/melative.jpg +0 -0
- trackma/extras/__pycache__/plex.cpython-34.pyc +0 -0
- trackma/extras/plex.py +0 -101
- trackma/lib/__pycache__/libhb.cpython-34.pyc +0 -0
- trackma/lib/__pycache__/libmelative.cpython-34.pyc +0 -0
- trackma/lib/libhb.py +0 -239
- trackma/lib/libmelative.py +0 -204
- trackma/tracker.py +0 -430
trackma/ui/gtkui.py
CHANGED
|
@@ -692,21 +692,32 @@ class Trackma_gtk():
|
|
|
692
692
|
self.error(e)
|
|
693
693
|
|
|
694
694
|
def __do_update_next(self, show, played_ep):
|
|
695
|
-
# Thread safe
|
|
696
695
|
GObject.idle_add(self.task_update_next, show, played_ep)
|
|
697
696
|
|
|
698
697
|
def changed_show(self, show):
|
|
698
|
+
GObject.idle_add(self.task_changed_show, show)
|
|
699
|
+
|
|
700
|
+
def changed_show_title(self, show, altname):
|
|
701
|
+
GObject.idle_add(self.task_changed_show_title, show, altname)
|
|
702
|
+
|
|
703
|
+
def changed_show_status(self, show, old_status=None):
|
|
704
|
+
GObject.idle_add(self.task_changed_show_status, show, old_status)
|
|
705
|
+
|
|
706
|
+
def playing_show(self, show, is_playing, episode):
|
|
707
|
+
GObject.idle_add(self.task_playing_show, show, is_playing, episode)
|
|
708
|
+
|
|
709
|
+
def task_changed_show(self, show):
|
|
699
710
|
status = show['my_status']
|
|
700
711
|
self.show_lists[status].update(show)
|
|
701
712
|
if show['id'] == self.selected_show:
|
|
702
713
|
self.show_ep_button.set_label(str(show['my_progress']))
|
|
703
714
|
self.show_score.set_value(show['my_score'])
|
|
704
715
|
|
|
705
|
-
def
|
|
716
|
+
def task_changed_show_title(self, show, altname):
|
|
706
717
|
status = show['my_status']
|
|
707
718
|
self.show_lists[status].update_title(show, altname)
|
|
708
719
|
|
|
709
|
-
def
|
|
720
|
+
def task_changed_show_status(self, show, old_status):
|
|
710
721
|
# Rebuild lists
|
|
711
722
|
status = show['my_status']
|
|
712
723
|
|
|
@@ -719,7 +730,7 @@ class Trackma_gtk():
|
|
|
719
730
|
|
|
720
731
|
self.show_lists[status].select(show)
|
|
721
732
|
|
|
722
|
-
def
|
|
733
|
+
def task_playing_show(self, show, is_playing, episode):
|
|
723
734
|
status = show['my_status']
|
|
724
735
|
self.show_lists[status].playing(show, is_playing)
|
|
725
736
|
|
|
@@ -1801,35 +1812,40 @@ class Settings(Gtk.Window):
|
|
|
1801
1812
|
### Play Next ###
|
|
1802
1813
|
lbl_player = Gtk.Label('Media Player')
|
|
1803
1814
|
lbl_player.set_size_request(120, -1)
|
|
1815
|
+
lbl_player.set_xalign(0)
|
|
1804
1816
|
self.txt_player = Gtk.Entry()
|
|
1805
1817
|
self.txt_player.set_max_length(4096)
|
|
1806
1818
|
playerbrowse_button = Gtk.Button('Browse...')
|
|
1807
1819
|
playerbrowse_button.connect("clicked", self.__do_browse, 'Select player', self.txt_player)
|
|
1808
1820
|
|
|
1809
1821
|
header0 = Gtk.Label()
|
|
1810
|
-
header0.set_text('<
|
|
1822
|
+
header0.set_text('<b>Play Next</b>')
|
|
1811
1823
|
header0.set_use_markup(True)
|
|
1824
|
+
header0.set_xalign(0)
|
|
1812
1825
|
|
|
1813
1826
|
line0 = Gtk.HBox(False, 5)
|
|
1814
|
-
line0.pack_start(lbl_player, False, False,
|
|
1815
|
-
line0.pack_start(self.txt_player,
|
|
1827
|
+
line0.pack_start(lbl_player, False, False, 5)
|
|
1828
|
+
line0.pack_start(self.txt_player, True, True, 0)
|
|
1816
1829
|
line0.pack_start(playerbrowse_button, False, False, 0)
|
|
1817
|
-
|
|
1830
|
+
|
|
1818
1831
|
### Tracker ###
|
|
1819
1832
|
|
|
1820
1833
|
# Labels
|
|
1821
1834
|
lbl_process = Gtk.Label('Process Name')
|
|
1822
1835
|
lbl_process.set_size_request(120, -1)
|
|
1836
|
+
lbl_process.set_xalign(0)
|
|
1823
1837
|
lbl_searchdir = Gtk.Label('Library Directory')
|
|
1824
1838
|
lbl_searchdir.set_size_request(120, -1)
|
|
1839
|
+
lbl_searchdir.set_xalign(0)
|
|
1825
1840
|
lbl_tracker_enabled = Gtk.Label('Enable Tracker')
|
|
1826
1841
|
lbl_tracker_enabled.set_size_request(120, -1)
|
|
1827
|
-
|
|
1828
|
-
lbl_tracker_plex_host_port.set_size_request(120, -1)
|
|
1842
|
+
lbl_tracker_enabled.set_xalign(0)
|
|
1829
1843
|
lbl_tracker_update_wait = Gtk.Label('Wait before update')
|
|
1830
1844
|
lbl_tracker_update_wait.set_size_request(120, -1)
|
|
1845
|
+
lbl_tracker_update_wait.set_xalign(0)
|
|
1831
1846
|
lbl_tracker_update_options = Gtk.Label('Update options')
|
|
1832
1847
|
lbl_tracker_update_options.set_size_request(120, -1)
|
|
1848
|
+
lbl_tracker_update_options.set_xalign(0)
|
|
1833
1849
|
|
|
1834
1850
|
# Entries
|
|
1835
1851
|
self.txt_process = Gtk.Entry()
|
|
@@ -1839,11 +1855,6 @@ class Settings(Gtk.Window):
|
|
|
1839
1855
|
self.browse_button = Gtk.Button('Browse...')
|
|
1840
1856
|
self.browse_button.connect("clicked", self.__do_browse, 'Select search directory', self.txt_searchdir, True)
|
|
1841
1857
|
self.chk_tracker_enabled = Gtk.CheckButton()
|
|
1842
|
-
self.txt_plex_host = Gtk.Entry()
|
|
1843
|
-
self.txt_plex_host.set_max_length(4096)
|
|
1844
|
-
self.txt_plex_port = Gtk.Entry()
|
|
1845
|
-
self.txt_plex_port.set_max_length(5)
|
|
1846
|
-
self.txt_plex_port.set_width_chars(5)
|
|
1847
1858
|
self.chk_tracker_enabled.connect("toggled", self.tracker_type_sensitive)
|
|
1848
1859
|
self.spin_tracker_update_wait = Gtk.SpinButton()
|
|
1849
1860
|
self.spin_tracker_update_wait.set_adjustment(Gtk.Adjustment(value=5, lower=0, upper=500, step_incr=1, page_incr=10))
|
|
@@ -1869,43 +1880,71 @@ class Settings(Gtk.Window):
|
|
|
1869
1880
|
|
|
1870
1881
|
# HBoxes
|
|
1871
1882
|
header1 = Gtk.Label()
|
|
1872
|
-
header1.set_text('<
|
|
1883
|
+
header1.set_text('<b>Tracker Options</b>')
|
|
1873
1884
|
header1.set_use_markup(True)
|
|
1885
|
+
header1.set_xalign(0)
|
|
1874
1886
|
|
|
1875
1887
|
line1 = Gtk.HBox(False, 5)
|
|
1876
|
-
line1.pack_start(lbl_searchdir, False, False,
|
|
1888
|
+
line1.pack_start(lbl_searchdir, False, False, 5)
|
|
1877
1889
|
line1.pack_start(self.txt_searchdir, True, True, 0)
|
|
1878
1890
|
line1.pack_start(self.browse_button, False, False, 0)
|
|
1879
1891
|
|
|
1880
1892
|
line2 = Gtk.HBox(False, 5)
|
|
1881
|
-
line2.pack_start(lbl_process, False, False,
|
|
1893
|
+
line2.pack_start(lbl_process, False, False, 5)
|
|
1882
1894
|
line2.pack_start(self.txt_process, True, True, 0)
|
|
1883
1895
|
|
|
1884
|
-
line7 = Gtk.HBox(False, 5)
|
|
1885
|
-
line7.pack_start(lbl_tracker_plex_host_port, False, False, 0)
|
|
1886
|
-
line7.pack_start(self.txt_plex_host, True, True, 0)
|
|
1887
|
-
line7.pack_start(self.txt_plex_port, True, True, 0)
|
|
1888
|
-
|
|
1889
1896
|
line3 = Gtk.HBox(False, 5)
|
|
1890
|
-
line3.pack_start(lbl_tracker_enabled, False, False,
|
|
1897
|
+
line3.pack_start(lbl_tracker_enabled, False, False, 5)
|
|
1891
1898
|
line3.pack_start(self.chk_tracker_enabled, False, False, 0)
|
|
1892
1899
|
line3.pack_start(self.rbtn_tracker_local, False, False, 0)
|
|
1893
1900
|
line3.pack_start(self.rbtn_tracker_plex, False, False, 0)
|
|
1894
1901
|
|
|
1895
1902
|
line8 = Gtk.HBox(False, 5)
|
|
1896
|
-
line8.pack_start(lbl_tracker_update_wait, False, False,
|
|
1903
|
+
line8.pack_start(lbl_tracker_update_wait, False, False, 5)
|
|
1897
1904
|
line8.pack_start(self.spin_tracker_update_wait, False, False, 0)
|
|
1898
1905
|
line8.pack_start(Gtk.Label('seconds'), False, False, 0)
|
|
1899
1906
|
|
|
1900
1907
|
line9 = Gtk.HBox(False, 5)
|
|
1901
|
-
line9.pack_start(lbl_tracker_update_options, False, False,
|
|
1908
|
+
line9.pack_start(lbl_tracker_update_options, False, False, 5)
|
|
1902
1909
|
line9.pack_start(self.chk_tracker_update_close, False, False, 0)
|
|
1903
1910
|
line9.pack_start(self.chk_tracker_update_prompt, False, False, 0)
|
|
1911
|
+
|
|
1912
|
+
### Plex ###
|
|
1913
|
+
header6 = Gtk.Label()
|
|
1914
|
+
header6.set_text('<b>Plex Media Server</b>')
|
|
1915
|
+
header6.set_use_markup(True)
|
|
1916
|
+
header6.set_xalign(0)
|
|
1917
|
+
|
|
1918
|
+
# Labels
|
|
1919
|
+
lbl_tracker_plex_host_port = Gtk.Label('Host and Port')
|
|
1920
|
+
lbl_tracker_plex_host_port.set_size_request(120, -1)
|
|
1921
|
+
lbl_tracker_plex_host_port.set_xalign(0)
|
|
1922
|
+
lbl_tracker_plex_obey_wait = Gtk.Label('Use "wait before update" time')
|
|
1923
|
+
lbl_tracker_plex_obey_wait.set_size_request(120, -1)
|
|
1924
|
+
lbl_tracker_plex_obey_wait.set_xalign(0)
|
|
1925
|
+
|
|
1926
|
+
# Entries
|
|
1927
|
+
self.txt_plex_host = Gtk.Entry()
|
|
1928
|
+
self.txt_plex_host.set_max_length(4096)
|
|
1929
|
+
self.txt_plex_port = Gtk.Entry()
|
|
1930
|
+
self.txt_plex_port.set_max_length(5)
|
|
1931
|
+
self.txt_plex_port.set_width_chars(5)
|
|
1932
|
+
self.chk_tracker_plex_obey_wait = Gtk.CheckButton()
|
|
1933
|
+
|
|
1934
|
+
# HBoxes
|
|
1935
|
+
line7 = Gtk.HBox(False, 5)
|
|
1936
|
+
line7.pack_start(lbl_tracker_plex_host_port, False, False, 5)
|
|
1937
|
+
line7.pack_start(self.txt_plex_host, True, True, 0)
|
|
1938
|
+
line7.pack_start(self.txt_plex_port, True, True, 0)
|
|
1939
|
+
line10 = Gtk.HBox(False, 5)
|
|
1940
|
+
line10.pack_start(lbl_tracker_plex_obey_wait, False, False, 5)
|
|
1941
|
+
line10.pack_start(self.chk_tracker_plex_obey_wait, False, False, 0)
|
|
1904
1942
|
|
|
1905
1943
|
### Auto-retrieve ###
|
|
1906
1944
|
header2 = Gtk.Label()
|
|
1907
|
-
header2.set_text('<
|
|
1945
|
+
header2.set_text('<b>Auto-retrieve</b>')
|
|
1908
1946
|
header2.set_use_markup(True)
|
|
1947
|
+
header2.set_xalign(0)
|
|
1909
1948
|
|
|
1910
1949
|
# Radio buttons
|
|
1911
1950
|
self.rbtn_autoret_off = Gtk.RadioButton.new_with_label_from_widget(None, 'Disabled')
|
|
@@ -1929,24 +1968,25 @@ class Settings(Gtk.Window):
|
|
|
1929
1968
|
|
|
1930
1969
|
### Auto-send ###
|
|
1931
1970
|
header3 = Gtk.Label()
|
|
1932
|
-
header3.set_text('<
|
|
1971
|
+
header3.set_text('<b>Auto-send</b>')
|
|
1933
1972
|
header3.set_use_markup(True)
|
|
1973
|
+
header3.set_xalign(0)
|
|
1934
1974
|
|
|
1935
1975
|
# Radio buttons
|
|
1936
1976
|
self.rbtn_autosend_off = Gtk.RadioButton.new_with_label_from_widget(None, 'Disabled')
|
|
1937
1977
|
self.rbtn_autosend_always = Gtk.RadioButton.new_with_label_from_widget(self.rbtn_autosend_off, 'After every change')
|
|
1938
1978
|
self.rbtn_autosend_at_exit = Gtk.CheckButton('Auto-send at exit')
|
|
1939
1979
|
|
|
1940
|
-
self.
|
|
1941
|
-
self.
|
|
1942
|
-
self.
|
|
1943
|
-
self.
|
|
1944
|
-
self.
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1980
|
+
self.rbtn_autosend_minutes = Gtk.RadioButton.new_with_label_from_widget(self.rbtn_autosend_off, 'After')
|
|
1981
|
+
self.spin_autosend_minutes = Gtk.SpinButton()
|
|
1982
|
+
self.spin_autosend_minutes.set_adjustment(Gtk.Adjustment(value=60, lower=1, upper=1000, step_incr=1, page_incr=10))
|
|
1983
|
+
self.spin_autosend_minutes.set_sensitive(False)
|
|
1984
|
+
self.rbtn_autosend_minutes.connect("toggled", self.radio_toggled, self.spin_autosend_minutes)
|
|
1985
|
+
lbl_autosend_minutes = Gtk.Label('minutes')
|
|
1986
|
+
line_autosend_minutes = Gtk.HBox(False, 5)
|
|
1987
|
+
line_autosend_minutes.pack_start(self.rbtn_autosend_minutes, False, False, 0)
|
|
1988
|
+
line_autosend_minutes.pack_start(self.spin_autosend_minutes, False, False, 0)
|
|
1989
|
+
line_autosend_minutes.pack_start(lbl_autosend_minutes, False, False, 0)
|
|
1950
1990
|
|
|
1951
1991
|
self.rbtn_autosend_size = Gtk.RadioButton.new_with_label_from_widget(self.rbtn_autosend_off, 'After the queue is larger than')
|
|
1952
1992
|
self.spin_autosend_size = Gtk.SpinButton()
|
|
@@ -1962,29 +2002,33 @@ class Settings(Gtk.Window):
|
|
|
1962
2002
|
line5 = Gtk.VBox(False, 5)
|
|
1963
2003
|
line5.pack_start(self.rbtn_autosend_off, False, False, 0)
|
|
1964
2004
|
line5.pack_start(self.rbtn_autosend_always, False, False, 0)
|
|
1965
|
-
line5.pack_start(
|
|
2005
|
+
line5.pack_start(line_autosend_minutes, False, False, 0)
|
|
1966
2006
|
line5.pack_start(line_autosend_size, False, False, 0)
|
|
1967
2007
|
line5.pack_start(self.rbtn_autosend_at_exit, False, False, 0)
|
|
1968
2008
|
|
|
1969
2009
|
### Additional options
|
|
1970
2010
|
header_additional = Gtk.Label()
|
|
1971
|
-
header_additional.set_text('<
|
|
2011
|
+
header_additional.set_text('<b>Additional options</b>')
|
|
1972
2012
|
header_additional.set_use_markup(True)
|
|
2013
|
+
header_additional.set_xalign(0)
|
|
1973
2014
|
|
|
1974
2015
|
self.chk_auto_status_change = Gtk.CheckButton('Change status automatically')
|
|
1975
2016
|
self.chk_auto_status_change_if_scored = Gtk.CheckButton('Change status automatically only if scored')
|
|
1976
2017
|
self.chk_auto_status_change_if_scored.set_sensitive(False)
|
|
1977
2018
|
self.chk_auto_status_change.connect("toggled", self.radio_toggled, self.chk_auto_status_change_if_scored)
|
|
1978
2019
|
self.chk_auto_date_change = Gtk.CheckButton('Change start and finish dates automatically')
|
|
2020
|
+
line_auto_status_change_if_scored = Gtk.HBox(False, 5)
|
|
2021
|
+
line_auto_status_change_if_scored.pack_start(self.chk_auto_status_change_if_scored, False, False, 20)
|
|
1979
2022
|
line_additional = Gtk.VBox(False, 5)
|
|
1980
2023
|
line_additional.pack_start(self.chk_auto_status_change, False, False, 0)
|
|
1981
|
-
line_additional.pack_start(
|
|
2024
|
+
line_additional.pack_start(line_auto_status_change_if_scored, False, False, 0)
|
|
1982
2025
|
line_additional.pack_start(self.chk_auto_date_change, False, False, 0)
|
|
1983
2026
|
|
|
1984
2027
|
### GTK Interface ###
|
|
1985
2028
|
header4 = Gtk.Label()
|
|
1986
|
-
header4.set_text('<
|
|
2029
|
+
header4.set_text('<b>GTK Interface</b>')
|
|
1987
2030
|
header4.set_use_markup(True)
|
|
2031
|
+
header4.set_xalign(0)
|
|
1988
2032
|
|
|
1989
2033
|
self.chk_show_tray = Gtk.CheckButton('Show Tray Icon')
|
|
1990
2034
|
self.chk_close_to_tray = Gtk.CheckButton('Close to Tray')
|
|
@@ -1998,18 +2042,27 @@ class Settings(Gtk.Window):
|
|
|
1998
2042
|
self.chk_show_tray.connect("toggled", self.radio_toggled, self.chk_close_to_tray)
|
|
1999
2043
|
self.chk_show_tray.connect("toggled", self.radio_toggled, self.chk_start_in_tray)
|
|
2000
2044
|
self.chk_show_tray.connect("toggled", self.radio_toggled, self.chk_tray_api_icon)
|
|
2045
|
+
|
|
2046
|
+
line_close_to_tray = Gtk.HBox(False, 5)
|
|
2047
|
+
line_close_to_tray.pack_start(self.chk_close_to_tray, False, False, 20)
|
|
2048
|
+
line_start_in_tray = Gtk.HBox(False, 5)
|
|
2049
|
+
line_start_in_tray.pack_start(self.chk_start_in_tray, False, False, 20)
|
|
2050
|
+
line_tray_api_icon = Gtk.HBox(False, 5)
|
|
2051
|
+
line_tray_api_icon.pack_start(self.chk_tray_api_icon, False, False, 20)
|
|
2052
|
+
|
|
2001
2053
|
line6 = Gtk.VBox(False, 5)
|
|
2002
2054
|
line6.pack_start(self.chk_show_tray, False, False, 0)
|
|
2003
|
-
line6.pack_start(
|
|
2004
|
-
line6.pack_start(
|
|
2005
|
-
line6.pack_start(
|
|
2055
|
+
line6.pack_start(line_close_to_tray, False, False, 0)
|
|
2056
|
+
line6.pack_start(line_start_in_tray, False, False, 0)
|
|
2057
|
+
line6.pack_start(line_tray_api_icon, False, False, 0)
|
|
2006
2058
|
line6.pack_start(self.chk_remember_geometry, False, False, 0)
|
|
2007
2059
|
line6.pack_start(self.chk_classic_progress, False, False, 0)
|
|
2008
2060
|
|
|
2009
2061
|
### Colors ###
|
|
2010
2062
|
header5 = Gtk.Label()
|
|
2011
|
-
header5.set_text('<
|
|
2063
|
+
header5.set_text('<b>Color Scheme</b>')
|
|
2012
2064
|
header5.set_use_markup(True)
|
|
2065
|
+
header5.set_xalign(0)
|
|
2013
2066
|
self.colors = {}
|
|
2014
2067
|
pages = [('rows', 'Row text'),
|
|
2015
2068
|
('progress','Progress widget')]
|
|
@@ -2028,11 +2081,12 @@ class Settings(Gtk.Window):
|
|
|
2028
2081
|
|
|
2029
2082
|
col_notebook = Gtk.Notebook()
|
|
2030
2083
|
for (key,tab_title) in pages:
|
|
2031
|
-
rows = Gtk.VBox(False,
|
|
2084
|
+
rows = Gtk.VBox(False, 5)
|
|
2085
|
+
rows.set_border_width(10)
|
|
2032
2086
|
rows_lines = []
|
|
2033
2087
|
for (c_key,text) in self.colors[key]: # Generate widgets for each color
|
|
2034
2088
|
line = Gtk.HBox(False, 5)
|
|
2035
|
-
label = Gtk.Label(text)
|
|
2089
|
+
label = Gtk.Label(text, xalign=0)
|
|
2036
2090
|
picker = Gtk.ColorButton.new_with_color(getColor(self.config['colors'][c_key]))
|
|
2037
2091
|
self.col_pickers[c_key] = picker
|
|
2038
2092
|
line.pack_start(label, True, True, 0)
|
|
@@ -2047,19 +2101,21 @@ class Settings(Gtk.Window):
|
|
|
2047
2101
|
notebook = Gtk.Notebook()
|
|
2048
2102
|
|
|
2049
2103
|
page0 = Gtk.VBox(False, 10)
|
|
2050
|
-
page0.set_border_width(
|
|
2104
|
+
page0.set_border_width(10)
|
|
2051
2105
|
page0.pack_start(header0, False, False, 0)
|
|
2052
2106
|
page0.pack_start(line0, False, False, 0)
|
|
2053
2107
|
page0.pack_start(header1, False, False, 0)
|
|
2054
2108
|
page0.pack_start(line3, False, False, 0)
|
|
2055
2109
|
page0.pack_start(line1, False, False, 0)
|
|
2056
2110
|
page0.pack_start(line2, False, False, 0)
|
|
2057
|
-
page0.pack_start(line7, False, False, 0)
|
|
2058
2111
|
page0.pack_start(line8, False, False, 0)
|
|
2059
2112
|
page0.pack_start(line9, False, False, 0)
|
|
2113
|
+
page0.pack_start(header6, False, False, 0)
|
|
2114
|
+
page0.pack_start(line7, False, False, 0)
|
|
2115
|
+
page0.pack_start(line10, False, False, 0)
|
|
2060
2116
|
|
|
2061
2117
|
page1 = Gtk.VBox(False, 10)
|
|
2062
|
-
page1.set_border_width(
|
|
2118
|
+
page1.set_border_width(10)
|
|
2063
2119
|
page1.pack_start(header2, False, False, 0)
|
|
2064
2120
|
page1.pack_start(line4, False, False, 0)
|
|
2065
2121
|
page1.pack_start(header3, False, False, 0)
|
|
@@ -2068,7 +2124,7 @@ class Settings(Gtk.Window):
|
|
|
2068
2124
|
page1.pack_start(line_additional, False, False, 0)
|
|
2069
2125
|
|
|
2070
2126
|
page2 = Gtk.VBox(False, 10)
|
|
2071
|
-
page2.set_border_width(
|
|
2127
|
+
page2.set_border_width(10)
|
|
2072
2128
|
page2.pack_start(header4, False, False, 0)
|
|
2073
2129
|
page2.pack_start(line6, False, False, 0)
|
|
2074
2130
|
page2.pack_start(header5, False, False, 0)
|
|
@@ -2090,6 +2146,7 @@ class Settings(Gtk.Window):
|
|
|
2090
2146
|
self.txt_searchdir.set_text(self.engine.get_config('searchdir'))
|
|
2091
2147
|
self.txt_plex_host.set_text(self.engine.get_config('plex_host'))
|
|
2092
2148
|
self.txt_plex_port.set_text(self.engine.get_config('plex_port'))
|
|
2149
|
+
self.chk_tracker_plex_obey_wait.set_active(self.engine.get_config('plex_obey_update_wait_s'))
|
|
2093
2150
|
self.chk_tracker_enabled.set_active(self.engine.get_config('tracker_enabled'))
|
|
2094
2151
|
self.rbtn_autosend_at_exit.set_active(self.engine.get_config('autosend_at_exit'))
|
|
2095
2152
|
self.spin_tracker_update_wait.set_value(self.engine.get_config('tracker_update_wait_s'))
|
|
@@ -2100,6 +2157,7 @@ class Settings(Gtk.Window):
|
|
|
2100
2157
|
self.rbtn_tracker_local.set_active(True)
|
|
2101
2158
|
self.txt_plex_host.set_sensitive(False)
|
|
2102
2159
|
self.txt_plex_port.set_sensitive(False)
|
|
2160
|
+
self.chk_tracker_plex_obey_wait.set_sensitive(False)
|
|
2103
2161
|
elif self.engine.get_config('tracker_type') == 'plex':
|
|
2104
2162
|
self.rbtn_tracker_plex.set_active(True)
|
|
2105
2163
|
self.txt_process.set_sensitive(False)
|
|
@@ -2111,13 +2169,13 @@ class Settings(Gtk.Window):
|
|
|
2111
2169
|
|
|
2112
2170
|
if self.engine.get_config('autosend') == 'always':
|
|
2113
2171
|
self.rbtn_autosend_always.set_active(True)
|
|
2114
|
-
elif self.engine.get_config('autosend')
|
|
2115
|
-
self.
|
|
2172
|
+
elif self.engine.get_config('autosend') in ('minutes', 'hours'):
|
|
2173
|
+
self.rbtn_autosend_minutes.set_active(True)
|
|
2116
2174
|
elif self.engine.get_config('autosend') == 'size':
|
|
2117
2175
|
self.rbtn_autosend_size.set_active(True)
|
|
2118
2176
|
|
|
2119
2177
|
self.spin_autoret_days.set_value(self.engine.get_config('autoretrieve_days'))
|
|
2120
|
-
self.
|
|
2178
|
+
self.spin_autosend_minutes.set_value(self.engine.get_config('autosend_minutes'))
|
|
2121
2179
|
self.spin_autosend_size.set_value(self.engine.get_config('autosend_size'))
|
|
2122
2180
|
|
|
2123
2181
|
self.chk_auto_status_change.set_active(self.engine.get_config('auto_status_change'))
|
|
@@ -2139,6 +2197,7 @@ class Settings(Gtk.Window):
|
|
|
2139
2197
|
self.engine.set_config('searchdir', self.txt_searchdir.get_text())
|
|
2140
2198
|
self.engine.set_config('plex_host', self.txt_plex_host.get_text())
|
|
2141
2199
|
self.engine.set_config('plex_port', self.txt_plex_port.get_text())
|
|
2200
|
+
self.engine.set_config('plex_obey_update_wait_s', self.chk_tracker_plex_obey_wait.get_active())
|
|
2142
2201
|
self.engine.set_config('tracker_enabled', self.chk_tracker_enabled.get_active())
|
|
2143
2202
|
self.engine.set_config('autosend_at_exit', self.rbtn_autosend_at_exit.get_active())
|
|
2144
2203
|
self.engine.set_config('tracker_update_wait_s', self.spin_tracker_update_wait.get_value())
|
|
@@ -2162,15 +2221,15 @@ class Settings(Gtk.Window):
|
|
|
2162
2221
|
# Auto-send
|
|
2163
2222
|
if self.rbtn_autosend_always.get_active():
|
|
2164
2223
|
self.engine.set_config('autosend', 'always')
|
|
2165
|
-
elif self.
|
|
2166
|
-
self.engine.set_config('autosend', '
|
|
2224
|
+
elif self.rbtn_autosend_minutes.get_active():
|
|
2225
|
+
self.engine.set_config('autosend', 'minutes')
|
|
2167
2226
|
elif self.rbtn_autosend_size.get_active():
|
|
2168
2227
|
self.engine.set_config('autosend', 'size')
|
|
2169
2228
|
else:
|
|
2170
2229
|
self.engine.set_config('autosend', 'off')
|
|
2171
2230
|
|
|
2172
2231
|
self.engine.set_config('autoretrieve_days', self.spin_autoret_days.get_value_as_int())
|
|
2173
|
-
self.engine.set_config('
|
|
2232
|
+
self.engine.set_config('autosend_minutes', self.spin_autosend_minutes.get_value_as_int())
|
|
2174
2233
|
self.engine.set_config('autosend_size', self.spin_autosend_size.get_value_as_int())
|
|
2175
2234
|
|
|
2176
2235
|
self.engine.set_config('auto_status_change', self.chk_auto_status_change.get_active())
|
|
@@ -2207,9 +2266,11 @@ class Settings(Gtk.Window):
|
|
|
2207
2266
|
self.txt_process.set_sensitive(True)
|
|
2208
2267
|
self.txt_plex_host.set_sensitive(False)
|
|
2209
2268
|
self.txt_plex_port.set_sensitive(False)
|
|
2269
|
+
self.chk_tracker_plex_obey_wait.set_sensitive(False)
|
|
2210
2270
|
elif self.rbtn_tracker_plex.get_active():
|
|
2211
2271
|
self.txt_plex_host.set_sensitive(True)
|
|
2212
2272
|
self.txt_plex_port.set_sensitive(True)
|
|
2273
|
+
self.chk_tracker_plex_obey_wait.set_sensitive(True)
|
|
2213
2274
|
self.txt_process.set_sensitive(False)
|
|
2214
2275
|
self.spin_tracker_update_wait.set_sensitive(True)
|
|
2215
2276
|
else:
|
|
@@ -2217,6 +2278,7 @@ class Settings(Gtk.Window):
|
|
|
2217
2278
|
self.spin_tracker_update_wait.set_sensitive(False)
|
|
2218
2279
|
self.txt_plex_host.set_sensitive(False)
|
|
2219
2280
|
self.txt_plex_port.set_sensitive(False)
|
|
2281
|
+
self.chk_tracker_plex_obey_wait.set_sensitive(False)
|
|
2220
2282
|
|
|
2221
2283
|
def __do_browse(self, widget, title, entry, dironly=False):
|
|
2222
2284
|
browsew = Gtk.FileChooserDialog(title,
|