Ejemplo n.º 1
0
    def _onSyncSelected(self, event):
        """ Go by only one series, and see if there are files downloaded """

        sid = viewmgr.appstate["series_id"]
        if sid >= 0:
            series = db.store.find(series_list.Series, series_list.Series.id == sid).one()
            updatecount, epcount = viewmgr.update_statuses(series)
Ejemplo n.º 2
0
    def _onSyncSelected(self, event):
        """ Go by only one series, and see if there are files downloaded """

        sid = viewmgr.appstate["series_id"]
        if sid >= 0:
            series = db.store.find(series_list.Series,
                                   series_list.Series.id == sid).one()
            updatecount, epcount = viewmgr.update_statuses(series)
Ejemplo n.º 3
0
    def _onSyncStatuses(self, event):
        """ Go by all series, and see if there are files downloaded """

        res = wx.MessageBox("Airs will now scan all your series folders on disk and see if\n"
                            "there are downloaded files for episodes still marked as \n"
                            "'To Download', 'Downloading' or 'Downloaded', and mark them as\n"
                            "'Ready' (this can take a little while).\n"
                            "Are you sure you want to do this?\n",
                            "Warning", wx.ICON_QUESTION | wx.YES_NO)

        if res == wx.YES:
            updatecount, epcount = viewmgr.update_statuses()
            if updatecount > 0:
                wx.MessageBox("%i of %i episodes are succesfully updated!" % (updatecount, epcount),
                              "Done", wx.ICON_INFORMATION)
            else:
                wx.MessageBox("%i episodes were examined, none were updated" % epcount,
                              "Done", wx.ICON_INFORMATION)
Ejemplo n.º 4
0
    def _onSyncStatuses(self, event):
        """ Go by all series, and see if there are files downloaded """

        res = wx.MessageBox(
            "Airs will now scan all your series folders on disk and see if\n"
            "there are downloaded files for episodes still marked as \n"
            "'To Download', 'Downloading' or 'Downloaded', and mark them as\n"
            "'Ready' (this can take a little while).\n"
            "Are you sure you want to do this?\n", "Warning",
            wx.ICON_QUESTION | wx.YES_NO)

        if res == wx.YES:
            updatecount, epcount = viewmgr.update_statuses()
            if updatecount > 0:
                wx.MessageBox(
                    "%i of %i episodes are succesfully updated!" %
                    (updatecount, epcount), "Done", wx.ICON_INFORMATION)
            else:
                wx.MessageBox(
                    "%i episodes were examined, none were updated" % epcount,
                    "Done", wx.ICON_INFORMATION)