Commits

Erik Svensson  committed 0fdcadf

Remove unnecessary property Torrent.queuePriority.
Fixed a possible backwards compatability problem in Client.start_all.

  • Participants
  • Parent commits 69ad214

Comments (0)

Files changed (2)

File transmissionrpc/client.py

 
     def start_all(self, bypass_queue=False, timeout=None):
         """start all torrents respecting the queue order"""
+        torrent_list = self.list().values()
         method = 'torrent-start'
-        if bypass_queue and self.rpc_version >= 14:
-            method = 'torrent-start-now'
-        torrent_list = self.list().values()
-        torrent_list = sorted(torrent_list, key=operator.attrgetter('queuePosition'))
+        if self.rpc_version >= 14:
+            if bypass_queue:
+                method = 'torrent-start-now'
+            torrent_list = sorted(torrent_list, key=operator.attrgetter('queuePosition'))
         ids = [x.id for x in torrent_list]
         self._request(method, {}, ids, True, timeout=timeout)
 

File transmissionrpc/torrent.py

         Can be one of 'low', 'normal', 'high'.
         """
         return PRIORITY[self.fields['bandwidthPriority']]
-
-    @property
-    def queuePosition(self):
-        """
-        Get the queuePosition as an int.
-        """
-	return self.fields['queuePosition']