add counter
This commit is contained in:
@@ -268,6 +268,7 @@ func (p *ITunesProvider) Charts(options *ChartsOptions) (*model.SearchResult2, e
|
||||
|
||||
// 解析结果
|
||||
if chartResult.Feed.Entry != nil {
|
||||
cnt := 1
|
||||
for _, entry := range chartResult.Feed.Entry {
|
||||
// 获取播客ID
|
||||
id := entry.ID.Attributes.ID
|
||||
@@ -278,7 +279,8 @@ func (p *ITunesProvider) Charts(options *ChartsOptions) (*model.SearchResult2, e
|
||||
|
||||
// 为每个播客获取详细信息
|
||||
lookupURL := fmt.Sprintf("%s/lookup?id=%s", p.FeedAPIEndpoint, id)
|
||||
p.Logger.Infof("lookup url: %s", lookupURL)
|
||||
p.Logger.Infof("%03d lookup url: %s", cnt, lookupURL)
|
||||
cnt++
|
||||
lookupReq, err := http.NewRequest("GET", lookupURL, nil)
|
||||
if err != nil {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user