|
@@ -191,7 +191,9 @@ func getDownloadLinks(inputURL string, channelID string) map[string]string {
|
|
|
if regexUrlTwitter.MatchString(inputURL) {
|
|
|
links, err := getTwitterUrls(inputURL)
|
|
|
if err != nil {
|
|
|
- log.Println(logPrefixErrorHere, color.RedString("Twitter Media fetch failed for %s -- %s", inputURL, err))
|
|
|
+ if !strings.Contains(err.Error(), "suspended") {
|
|
|
+ log.Println(logPrefixErrorHere, color.RedString("Twitter Media fetch failed for %s -- %s", inputURL, err))
|
|
|
+ }
|
|
|
} else if len(links) > 0 {
|
|
|
return trimDownloadedLinks(links, channelID)
|
|
|
}
|
|
@@ -199,7 +201,9 @@ func getDownloadLinks(inputURL string, channelID string) map[string]string {
|
|
|
if regexUrlTwitterStatus.MatchString(inputURL) {
|
|
|
links, err := getTwitterStatusUrls(inputURL, channelID)
|
|
|
if err != nil {
|
|
|
- log.Println(logPrefixErrorHere, color.RedString("Twitter Status fetch failed for %s -- %s", inputURL, err))
|
|
|
+ if !strings.Contains(err.Error(), "suspended") {
|
|
|
+ log.Println(logPrefixErrorHere, color.RedString("Twitter Status fetch failed for %s -- %s", inputURL, err))
|
|
|
+ }
|
|
|
} else if len(links) > 0 {
|
|
|
return trimDownloadedLinks(links, channelID)
|
|
|
}
|