|
@@ -512,7 +512,7 @@ public class BgServiceImpl implements BgService {
|
|
|
*/
|
|
*/
|
|
|
@Async
|
|
@Async
|
|
|
@Override
|
|
@Override
|
|
|
- public void jsoupIcodePool(Integer status, Integer isDel) {
|
|
|
|
|
|
|
+ public void jsoupIcodePool(Integer status, Integer isDel, Integer ignoreRetryCount) {
|
|
|
log.warn("jsoupIcodePool 开始:status={},isDel={}", status, isDel);
|
|
log.warn("jsoupIcodePool 开始:status={},isDel={}", status, isDel);
|
|
|
if (isDel == 1) {
|
|
if (isDel == 1) {
|
|
|
videoInfoPoolMapper.deleteAll();
|
|
videoInfoPoolMapper.deleteAll();
|
|
@@ -520,7 +520,13 @@ public class BgServiceImpl implements BgService {
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取待抓取码列表
|
|
// 获取待抓取码列表
|
|
|
- List<String> icodePoolList = icodePoolMapper.findIcodeByStatus(status);
|
|
|
|
|
|
|
+ List<String> icodePoolList;
|
|
|
|
|
+ if (1 == ignoreRetryCount) {
|
|
|
|
|
+ icodePoolList = icodePoolMapper.findIcodeByStatus4IgnoreRetryCount(status);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ icodePoolList = icodePoolMapper.findIcodeByStatus(status);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (icodePoolList.size() == 0) {
|
|
if (icodePoolList.size() == 0) {
|
|
|
log.warn("status={}的icodePoolList为空", status);
|
|
log.warn("status={}的icodePoolList为空", status);
|
|
|
return;
|
|
return;
|