diff options
| author | lost+skunk <[email protected]> | 2024-07-30 01:20:00 +0300 |
|---|---|---|
| committer | lost+skunk <[email protected]> | 2024-07-30 01:20:00 +0300 |
| commit | 42ea2980f9be365c97b17d5273270fa1862ee9fc (patch) | |
| tree | 6a8cf69711a8065113b130678a2e6b57411f1937 /comments.go | |
| parent | 4d166ad5f98377685a9dd47a0aaed547e67d79ce (diff) | |
| download | devianter-0.2.5.tar.gz devianter-0.2.5.tar.bz2 devianter-0.2.5.zip | |
Парсер медии с кастомным разрешениемv0.2.5
Diffstat (limited to 'comments.go')
| -rw-r--r-- | comments.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/comments.go b/comments.go index 928de44..24d2d53 100644 --- a/comments.go +++ b/comments.go @@ -11,7 +11,7 @@ type Thread struct { ID int `json:"commentId"` Parent int `json:"parentId"` - Posted time + Posted timeStamp Author bool `json:"isAuthorHighlited"` Desctiption string @@ -35,7 +35,7 @@ type Comments struct { } // 1 - комментарии поста; 4 - комментарии на стене группы или пользователя -func CommentsFunc(postid string, cursor string, page int, typ int) (cmmts Comments) { +func GetComments(postid string, cursor string, page int, typ int) (cmmts Comments) { for x := 0; x <= page; x++ { ujson( "dashared/comments/thread?typeid="+strconv.Itoa(typ)+ @@ -60,7 +60,7 @@ func CommentsFunc(postid string, cursor string, page int, typ int) (cmmts Commen } e := json.Unmarshal([]byte(m), &content) - err(e) + try(e) for _, a := range content.Blocks { cmmts.Thread[i].Comment = a.Text |
