From 52de61265e27f9d7f58ea71a8a291de57154653c Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Mon, 15 Aug 2022 16:43:27 +0200 Subject: [PATCH] renamed to nyaanime --- go.mod | 4 ++-- go.sum | 6 ++---- parsers.go | 4 ++-- torrent_parsing.go | 2 +- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 91f9375..6738edb 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ -module git.milar.in/animan/parsers +module git.milar.in/nyaanime/parsers go 1.18 require ( - git.milar.in/animan/model v0.0.0-20220815093549-fe9b565a9dd2 git.milar.in/milarin/adverr v0.2.1 + git.milar.in/nyaanime/model v0.0.0-20220815143950-c3d8a5af20c3 ) require git.milar.in/milarin/anilist v1.5.0 // indirect diff --git a/go.sum b/go.sum index 15adf7e..27fd23a 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,6 @@ -git.milar.in/animan/model v0.0.0-20220804154959-f8b66e8c9eda h1:9XG7Dn+UtyLwwNcuol10EdHcBQjYD+1WzmnJbRUJQfs= -git.milar.in/animan/model v0.0.0-20220804154959-f8b66e8c9eda/go.mod h1:oXDr3slnzXoccIrci2wotX0cWwMVuAQ9dSvmh1buE4c= -git.milar.in/animan/model v0.0.0-20220815093549-fe9b565a9dd2 h1:vNbYNp8VJQ6FBENgZMHA1IFOfPkQEA+TIaN8PFF8m48= -git.milar.in/animan/model v0.0.0-20220815093549-fe9b565a9dd2/go.mod h1:oXDr3slnzXoccIrci2wotX0cWwMVuAQ9dSvmh1buE4c= git.milar.in/milarin/adverr v0.2.1 h1:eyXFGC+Ui/kcNt2+NqP3HiAplwxzqeNr9DfitsUb3c4= git.milar.in/milarin/adverr v0.2.1/go.mod h1:wwfglcey4R3vqjNL/d8mbnvFJGzETRXzAEolIHZY32w= git.milar.in/milarin/anilist v1.5.0 h1:fSiAXY/topNk4ISEp2QtcG9HHKLJfMc8w05iqc+Paf0= git.milar.in/milarin/anilist v1.5.0/go.mod h1:8PTHXFMA45JpfRFIpcdrKwDHue8fbT/wwV1BuHFn6c0= +git.milar.in/nyaanime/model v0.0.0-20220815143950-c3d8a5af20c3 h1:GyAhYs3Nl8CuzfOeLKmWwRe/Z+pEEtnWty39HfGz6iE= +git.milar.in/nyaanime/model v0.0.0-20220815143950-c3d8a5af20c3/go.mod h1:OzhQgj0b/Hf9fg8VXYxYt8ONQOvHm8xC44TmS9kQ150= diff --git a/parsers.go b/parsers.go index 40938b8..a6cb3c9 100644 --- a/parsers.go +++ b/parsers.go @@ -1,12 +1,12 @@ package parsers -import "git.milar.in/animan/model" +import "git.milar.in/nyaanime/model" /* how to get all torrent names on a nyaa page: let s = ""; -document.querySelectorAll("tr > td:nth-child(2) > a:not(.comments)").forEach((element, index) => { +document.querySelectorAll("tr > td:nth-child(2) > a:not(.comments)").forEach(element => { s += element.textContent + "\n"; }) console.log(s); diff --git a/torrent_parsing.go b/torrent_parsing.go index 431f274..4d92db4 100644 --- a/torrent_parsing.go +++ b/torrent_parsing.go @@ -3,7 +3,7 @@ package parsers import ( "regexp" - "git.milar.in/animan/model" + "git.milar.in/nyaanime/model" ) // TorrentParseOptions holds the subgroup index in which information can be found in a given regex