• R/O
  • HTTP
  • SSH
  • HTTPS

DelesteRandomSelector: Commit

開発Git


Commit MetaInfo

Revision0935ce969aec096457f604cd7bda2bb109d96994 (tree)
Time2021-07-20 19:17:25
Authorhizumiaoba <56146205+hizumiaoba@user...>
Commiterhizumiaoba

Log Message

Revert "feat: added AutoLibraryUpdate Progress"

This reverts commit 5a59617b851c997fd91cbea3f943e82a3190988d.

Change Summary

Incremental Difference

--- a/src/com/ranfa/main/DelesteRandomSelector.java
+++ b/src/com/ranfa/main/DelesteRandomSelector.java
@@ -153,48 +153,6 @@ public class DelesteRandomSelector extends JFrame {
153153 }
154154 }, es);
155155 LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[DEBUG]: " + "Version:" + getVersion());
156- if(property.isCheckLibraryUpdates()) {
157- LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[INFO]: " + "Checking for library updates...");
158- ArrayList<Song> updatesWebTmp = new ArrayList<Song>();
159- ArrayList<Song> updatesLocalTmp = new ArrayList<Song>();
160- if(getWholeDataFuture.isDone()) {
161- updatesWebTmp = wholeDataList;
162- } else {
163- try {
164- updatesWebTmp = getWholeDataFuture.get();
165- } catch (InterruptedException e) {
166- LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[FATAL]: " + e.getLocalizedMessage());
167- JOptionPane.showMessageDialog(null, "[InterruptedException]Exception in Thread:" + Thread.currentThread() + "\n" + e.getLocalizedMessage());
168- } catch (ExecutionException e) {
169- LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[WARN]: " + e.getLocalizedMessage());
170- JOptionPane.showMessageDialog(null, "[ExecutionException]Exception in Thread:" + Thread.currentThread() + "\n" + e.getLocalizedMessage());
171- }
172- }
173- LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[INFO]: " + "Web data scan completed.\nSize:" + updatesWebTmp.size());
174- if(getFromJsonFuture.isDone()) {
175- updatesLocalTmp = fromJsonList;
176- } else {
177- try {
178- updatesLocalTmp = getFromJsonFuture.get();
179- } catch (InterruptedException e) {
180- LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[FATAL]: " + e.getLocalizedMessage());
181- JOptionPane.showMessageDialog(null, "[InterruptedException]Exception in Thread:" + Thread.currentThread() + "\n" + e.getLocalizedMessage());
182- } catch (ExecutionException e) {
183- LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[WARN]: " + e.getLocalizedMessage());
184- JOptionPane.showMessageDialog(null, "[ExecutionException]Exception in Thread:" + Thread.currentThread() + "\n" + e.getLocalizedMessage());
185- }
186- }
187- LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[INFO]: " + "Current json data scan completed.\nSize:" + updatesLocalTmp.size());
188- if(updatesWebTmp.size() > updatesLocalTmp.size()) {
189- LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[INFO]: " + "Song update detected.\nInitiate update progress...");
190- Scraping.writeToJson(updatesWebTmp);
191- fromJsonList.clear();
192- fromJsonList.addAll(updatesWebTmp);
193- LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[INFO]: " + "Update progress compeleted.Initiate GUI.");
194- } else {
195- LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[INFO]: " + "No updates found.Initiate GUI.");
196- }
197- }
198156 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
199157 setBounds(100, 100, 640, 360);
200158 contentPane = new JPanel();
Show on old repository browser