mirror of
https://github.com/Alvin-Zilverstand/Twitter-X-Media-Batch-Downloader.git
synced 2026-12-01 10:31:24 +01:00
v4.9
This commit is contained in:
1 parent
3fb8bda2ff
commit
2ada5da9bf
12 files changed
+164
-116
No files matched your search
+2
-3
@@ -698,11 +698,10 @@ func ExtractTimeline(req TimelineRequest) (*TwitterResponse, error) {
|
||||
}
|
||||
|
||||
includeText := req.IncludeText
|
||||
wantsRetweets := req.Retweets
|
||||
|
||||
timelineType := req.TimelineType
|
||||
if timelineType == "" {
|
||||
if includeText || wantsRetweets {
|
||||
if includeText {
|
||||
timelineType = "tweets"
|
||||
} else {
|
||||
timelineType = "media"
|
||||
@@ -725,7 +724,7 @@ func ExtractTimeline(req TimelineRequest) (*TwitterResponse, error) {
|
||||
args = append(args, "--limit", fmt.Sprintf("%d", req.BatchSize))
|
||||
}
|
||||
|
||||
if timelineType == "tweets" || timelineType == "timeline" {
|
||||
if timelineType == "tweets" || timelineType == "timeline" || timelineType == "media" {
|
||||
if req.Retweets {
|
||||
args = append(args, "--retweets", "include")
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user