| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.yeshi.buwan.iqiyi.IqiYiNewAPI; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | if (!Constant.JobTasker) |
| | | return; |
| | | synchronized (funTVUtil) { |
| | | funTVUtil.startParseAll(); |
| | | funTVUtil.startUpdate(); |
| | | } |
| | | } |
| | | |
| | |
| | | if (!Constant.JobTasker) |
| | | return; |
| | | synchronized (funTVUtil) { |
| | | funTVUtil.startParse(); |
| | | funTVUtil.startUpdate(); |
| | | } |
| | | } |
| | | |
| | |
| | | int count = 0; |
| | | while (StringUtil.isNullOrEmpty(aid) && count < 3) { |
| | | if (StringUtil.isNullOrEmpty(queue.getAid())) { |
| | | aid = IqiyiUtil.getAlbumIdFromPlayUrl(queue.getUrl()); |
| | | aid = IqiYiNewAPI.getAidByUrl(queue.getUrl()); |
| | | count++; |
| | | try { |
| | | Thread.sleep(1000 * 2); |