diff --git a/build.gradle b/build.gradle index 3f66fe2c..ca74463f 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { } group = 'dpozinen' -version = '2.5' +version = '2.6' repositories { mavenCentral() diff --git a/src/main/kotlin/dpozinen/tracker/Tracker.kt b/src/main/kotlin/dpozinen/tracker/Tracker.kt index 957c12f6..40b2fea7 100644 --- a/src/main/kotlin/dpozinen/tracker/Tracker.kt +++ b/src/main/kotlin/dpozinen/tracker/Tracker.kt @@ -26,7 +26,6 @@ class Tracker( fun from(tracker: Trackers) = when (tracker) { Trackers.OneThreeThree -> oneThreeThreeSevenXTo() - Trackers.Rarbg -> rarbg() } private fun oneThreeThreeSevenXTo() = Tracker( @@ -34,11 +33,6 @@ class Tracker( TrackerOps.OneThreeThree() ) - private fun rarbg() = Tracker( - TrackerParser.Rarbg(), - TrackerOps.Rarbg() - ) - } } \ No newline at end of file diff --git a/src/main/kotlin/dpozinen/tracker/TrackerOps.kt b/src/main/kotlin/dpozinen/tracker/TrackerOps.kt index e57e3397..98606ea9 100644 --- a/src/main/kotlin/dpozinen/tracker/TrackerOps.kt +++ b/src/main/kotlin/dpozinen/tracker/TrackerOps.kt @@ -30,39 +30,6 @@ interface TrackerOps { } - class Rarbg : TrackerOps { - private val baseUrl: String = "https://rarbg.to" - - private val headers = mapOf( - "Referer" to "https://rarbg2021.org", - "User-Agent" to "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36", - "Cookie" to "gaDts48g=q8h5pp9t; tcc; aby=2; ppu_main_9ef78edf998c4df1e1636c9a474d9f47=1; ppu_sub_9ef78edf998c4df1e1636c9a474d9f47=3; skt=izegwjyodt; skt=izegwjyodt; gaDts48g=q8h5pp9t; __cf_bm=YxPZVni6m2kjxfO08ACgWstKkmesN63D8AV0Cwv.W9E-1663500834-0-AZupSp29iD+HxAJ7SUf5ZEHe1YPGh6EV7egcPQmsd+MkCvwP34Vyz8v9413FNKM8fOvaU9b9CCGg6hMEzABBvFqkzDyhDv+VybcQudfDXzUHWqDem5GtVA1x+mVs59Oggg==", - "Accept-Language" to "uk-UA,uk;q=0.9,en-US;q=0.8,en;q=0.7", - "Accept" to "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", - "authority" to " rarbg2021.org", - "upgrade-insecure-requests" to "1" - ) - - override fun open(torrent: Torrent): String = - session.newRequest() - .url("$baseUrl${torrent.link}") - .headers(headers) - .execute() - .body() - - override fun search(keywords: List): String = - session.newRequest() - .url("$baseUrl/torrents.php?search=${keywordsSegment(keywords)}&category%5B%5D=17&category%5B%5D=44&category%5B%5D=45&category%5B%5D=47&category%5B%5D=50&category%5B%5D=51&category%5B%5D=52&category%5B%5D=42&category%5B%5D=46&category%5B%5D=54&category%5B%5D=18&category%5B%5D=41&category%5B%5D=49") - .headers(headers) - .execute() - .body() - - override fun expandUrl(url: String): String = "$baseUrl/$url" - - private fun keywordsSegment(keywords: List) = keywords.joinToString("+") - - } - companion object { val session: Connection = Jsoup.newSession() } diff --git a/src/main/kotlin/dpozinen/tracker/TrackerParser.kt b/src/main/kotlin/dpozinen/tracker/TrackerParser.kt index 048ef02e..dc3534fd 100644 --- a/src/main/kotlin/dpozinen/tracker/TrackerParser.kt +++ b/src/main/kotlin/dpozinen/tracker/TrackerParser.kt @@ -55,51 +55,4 @@ interface TrackerParser { } - class Rarbg : TrackerParser { - - override fun parseSearch(body: String): Torrents { - val document = Jsoup.parse(body) - - if (document.select("p").any { e -> e.text().contains("No results were returned") }) - return Torrents.empty() - - return Torrents( - document.select(".lista2") - .map { toTorrent(it) } - .toList() - ) - } - - private fun toTorrent(element: Element): Torrent { - element.select(".size .seeds").remove() - - val link = element.select("a[title]").attr("href") - val name = element.select("a[title]").text() - val seeds = element.select("td")[4]?.text()?.toInt() ?: 0 - val leeches = element.select("td")[5]?.text()?.toInt() ?: 0 - val date = element.select("td")[2]?.text() ?: "" - val size = element.select("td")[3]?.text() ?: "" - val contributor = element.select("td")[7]?.text() ?: "" - - return Torrent(link, name, size, seeds, leeches, date, contributor) - } - - override fun parseTorrentPage(body: String): Torrent { - val document = Jsoup.parse(body) - - val link = document - .select(".lista a[href^=magnet]") - .first()!! - .attr("href") - - val name = document - .select("h1") - .first() - ?.text() ?: "" - - return Torrent(link, name) - } - - } - } \ No newline at end of file diff --git a/src/main/kotlin/dpozinen/tracker/Trackers.kt b/src/main/kotlin/dpozinen/tracker/Trackers.kt index b8a5f4d4..0ff2a44a 100644 --- a/src/main/kotlin/dpozinen/tracker/Trackers.kt +++ b/src/main/kotlin/dpozinen/tracker/Trackers.kt @@ -1,13 +1,12 @@ package dpozinen.tracker enum class Trackers { - OneThreeThree, Rarbg; + OneThreeThree; companion object { fun from(name: String) : Trackers { return when (name) { "133" -> OneThreeThree - "rarbg" -> Rarbg else -> throw IllegalArgumentException() } } diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index 8012e4cd..65594f40 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -43,10 +43,6 @@ -
- - -
diff --git a/src/test/kotlin/Data.kt b/src/test/kotlin/Data.kt index 2db8d4e4..c9853288 100644 --- a/src/test/kotlin/Data.kt +++ b/src/test/kotlin/Data.kt @@ -40,27 +40,6 @@ class Data { } } - class Rarbg { - companion object { - const val SEARCH_PAGE_PATH = "src/test/resources/rarbg/search.html" - const val TORRENT_PAGE_PATH = "src/test/resources/rarbg/torrent-page.html" - - val PAGE_EXPECTED_TORRENT = Torrent( - "magnet:?xt=urn:btih:4d92937e338d550e09a18a6863caed3ea67e5638&dn=Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.720p.WEB.h264-CAFFEiNE%5Brartv%5D&tr=http%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce&tr=udp%3A%2F%2F9.rarbg.me%3A2720&tr=udp%3A%2F%2F9.rarbg.to%3A2950&tr=udp%3A%2F%2Ftracker.slowcheetah.org%3A14750&tr=udp%3A%2F%2Ftracker.tallpenguin.org%3A15790", - "Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.720p.WEB.h264-CAFFEiNE[rartv]" - ) - - val SEARCH_EXPECTED_TORRENT = Torrent( - "/torrent/b4crw2z", - "Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.720p.WEB.h264-CAFFEiNE[rartv]", - "290.03 MB", - 63, - 6, - "2022-09-18 04:42:40", - "rartv" - ) - } - } companion object { val info: DelugeTorrents.Info = DelugeTorrents.Info( diff --git a/src/test/kotlin/tracker/ParsingTest.kt b/src/test/kotlin/tracker/ParsingTest.kt index 8c81a419..9e062a9f 100644 --- a/src/test/kotlin/tracker/ParsingTest.kt +++ b/src/test/kotlin/tracker/ParsingTest.kt @@ -1,13 +1,11 @@ package tracker -import Data.* +import Data.OneThreeThree import dpozinen.tracker.TrackerParser import org.assertj.core.api.Assertions.assertThat -import org.assertj.core.data.Index -import org.assertj.core.data.Index.atIndex -import kotlin.test.Test import java.nio.file.Files import java.nio.file.Path +import kotlin.test.Test class ParsingTest { @@ -27,20 +25,4 @@ class ParsingTest { assertThat(torrent).isEqualTo(OneThreeThree.PAGE_EXPECTED_TORRENT) } - @Test - fun `should parse search page rarbg`() { - val body = Files.readString(Path.of(Rarbg.SEARCH_PAGE_PATH)) - val torrents = TrackerParser.Rarbg().parseSearch(body) - - assertThat(torrents.torrents).contains(Rarbg.SEARCH_EXPECTED_TORRENT, atIndex(0)) - } - - @Test - fun `should parse torrent page rarbg`() { - val body = Files.readString(Path.of(Rarbg.TORRENT_PAGE_PATH)) - val torrent = TrackerParser.Rarbg().parseTorrentPage(body) - - assertThat(torrent).isEqualTo(Rarbg.PAGE_EXPECTED_TORRENT) - } - } \ No newline at end of file diff --git a/src/test/resources/rarbg/search.html b/src/test/resources/rarbg/search.html deleted file mode 100755 index 55405248..00000000 --- a/src/test/resources/rarbg/search.html +++ /dev/null @@ -1,211 +0,0 @@ - Download bob , in Movies/x264, Movies/x264/1080, Movies/x264/720, Movies/x264/3D torrents - RARBG - -
- - - - - - - - - -
-rarbg torrents - - - -
- - -
- - - - - - -
-
-
- - -
-
-
- - -
- - - -
  Guest (Login)TorrentsBox officeCatalogTop 10News
- -
- - - -
-
-
View all
Movies
XXX
TV Shows
Games
Music
Software
Non XXX
 
Trailers
Catalog
Box Office
 
New index
 
- - - -
- - - -
Recommended torrents :
-
I.Used.to.Be.Famous.2022.1080p.NF.WEBRip.DDP5.1.Atmos.x264-SMURFThe.Invitation.2022.UNRATED.1080p.WEBRip.DD5.1.x264-CMConfess.Fletch.2022.1080p.WEBRip.DD5.1.x264-CMGoodnight.Mommy.2022.1080p.AMZN.WEBRip.DDP5.1.x264-SMURFSpeak.No.Evil.2022.1080p.AMZN.WEBRip.DDP5.1.x264-NTbEmily.the.Criminal.2022.1080p.AMZN.WEBRip.DDP5.1.x264-SMURFDeus.The.Dark.Sphere.2022.1080p.WEBRip.DD5.1.x264-CMBreaking.2022.1080p.WEBRip.DDP5.1.Atmos.x264-CMThree.Thousand.Years.of.Longing.2022.1080p.AMZN.WEBRip.DDP5.1.x264-SMURF
-
-
-
-

- - - - -
-
- - - - - - - - - -
- - «
- -

- - - - - - - - -
- - - -

bob , in Movies/x264, Movies/x264/1080, Movies/x264/720, Movies/x264/3D

- - - -
- - -
- - - - - - - - - - - - - -
Cat.FileAddedSizeS.L.commentsUploader
Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.720p.WEB.h264-CAFFEiNE[rartv]
Reality-TV IMDB: 7.3/10
2022-09-18 04:42:40290.03 MB636--rartv
Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.1080p.WEB.h264-CAFFEiNE[rartv]
Reality-TV IMDB: 7.3/10
2022-09-18 04:41:151.21 GB953--rartv
Canadas.Drag.Race.S03.WEBRip.x264-ION10
Game-Show, Reality-TV IMDB: 7.3/10
2022-09-17 15:34:185.26 GB107--OldFart
Canadas.Drag.Race.S03.1080p.WOWP.WEBRip.AAC2.0.x264-SLAG[rartv]
Game-Show, Reality-TV IMDB: 7.3/10
2022-09-17 15:34:1021.90 GB124--OldFart
12.Monkeys.1995.PROPER.2160p.BluRay.x265.10bit.SDR.DTS-HD.MA.5.1-SWTYBLZ
Mystery, Sci-Fi, Thriller IMDB: 8.0/10
2022-09-17 14:28:0463.92 GB423--OldFart
12.Monkeys.1995.PROPER.2160p.BluRay.x264.8bit.SDR.DTS-HD.MA.5.1-SWTYBLZ
Mystery, Sci-Fi, Thriller IMDB: 8.0/10
2022-09-17 14:27:5576.97 GB49--OldFart
12.Monkeys.1995.2160p.UHD.BluRay.x265.10bit.HDR.DTS-HD.MA.5.1-SWTYBLZ
Mystery, Sci-Fi, Thriller IMDB: 8.0/10
2022-09-17 14:27:4743.26 GB3193--OldFart
Netherbeast.Incorporated.2007.1080p.BluRay.x265-RARBG
Comedy, Fantasy, Horror, Mystery IMDB: 5.5/10
2022-09-17 12:22:491.38 GB7017--Scene
My.Brothers.Wife.1966.1080p.BluRay.x265-RARBG
Drama, Romance
2022-09-17 08:29:581.10 GB4510--Scene
Black.Crescent.Moon.2008.1080p.BluRay.x265-RARBG
Crime, Drama, Mystery
2022-09-17 08:24:061.47 GB3016--Scene
My.Brothers.Wife.1966.1080p.BluRay.H264.AAC-RARBG
Drama, Romance
2022-09-16 19:45:151.34 GB507--Scene
My.Brothers.Wife.1966.720p.BluRay.H264.AAC-RARBG
Drama, Romance
2022-09-16 18:42:31872.95 MB64--Scene
My.Brothers.Wife.1966.BRRip.x264-ION10
Drama, Romance
2022-09-16 17:12:29687.40 MB162--Scene
My.Brothers.Wife.1966.1080p.BluRay.x264.AAC1.0-PTP
Drama, Romance
2022-09-16 16:09:596.03 GB2515--Scene
12.Monkeys.1995.PROPER.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.5.1-FGT
Mystery, Sci-Fi, Thriller IMDB: 8.0/10
2022-09-16 14:25:5082.53 GB6991--OldFart
12.Monkeys.1995.PROPER.2160p.BluRay.HEVC.DTS-HD.MA.5.1-TAiPAK
Mystery, Sci-Fi, Thriller IMDB: 8.0/10
2022-09-16 14:25:3791.65 GB2663--OldFart
Goodnight.Mommy.2022.720p.WEB.h264-KOGi
Crime, Drama, Horror, Mystery, Thriller IMDB: 5.5/10
2022-09-16 10:22:182.13 GB499--p33Rn3t
American.Gigolo.S01E02.Pretty.Baby.1080p.AMZN.WEBRip.DDP5.1.x264-NTb[rartv]
Crime, Drama, Mystery, Romance, Thriller IMDB: 7.5/10
2022-09-16 08:16:023.36 GB7411--rartv
American.Gigolo.S01E02.Pretty.Baby.720p.AMZN.WEBRip.DDP5.1.x264-NTb[rartv]
Crime, Drama, Mystery, Romance, Thriller IMDB: 7.5/10
2022-09-16 08:15:571.80 GB354--rartv
Goodnight.Mommy.2022.1080p.WEBRip.x265-RARBG
Crime, Drama, Horror, Mystery, Thriller IMDB: 5.5/10
2022-09-16 08:06:191.44 GB28162--Scene
American.Gigolo.S01E02.2160p.WEB-DL.DD5.1.DV.MP4.x265-DVSUX[rartv]
Crime, Drama, Mystery, Romance, Thriller IMDB: 7.5/10
2022-09-16 06:35:465.30 GB1041OldFart
American.Gigolo.S01E02.2160p.WEB-DL.DD5.1.DV.MKV.x265-GGEZ[rartv]
Crime, Drama, Mystery, Romance, Thriller IMDB: 7.5/10
2022-09-16 06:35:405.30 GB451OldFart
American.Gigolo.S01E02.WEBRip.x264-ION10
Crime, Drama, Mystery, Romance, Thriller IMDB: 7.5/10
2022-09-16 06:31:08484.55 MB1357--rartv
American.Gigolo.S01E02.2160p.WEB.H265-GGEZ[rartv]
Crime, Drama, Mystery, Romance, Thriller IMDB: 7.5/10
2022-09-16 06:21:455.37 GB105--rartv
American.Gigolo.S01E02.HDR.2160p.WEB.H265-GGEZ[rartv]
Crime, Drama, Mystery, Romance, Thriller IMDB: 7.5/10
2022-09-16 06:12:065.28 GB255--rartv
-
-
- - -
- -
- -
bob , in Movies/x264, Movies/x264/1080, Movies/x264/720, Movies/x264/3D
-
-
-
-
-
-
-SUPPORT : support@rarbg.to FAQ/Rules DMCA : spam@rarbg.to DMCA INFO HERE : DMCA Info
-
-Sun, 18 Sep 2022 12:26:59 +0200
-
- -
-Blacked GroupBanged eli gilf natasha nice "Jack Van Evera
- -
-
- -Powered by hamsters 1.0
-By using this site you agree to and accept our user agreement. If you havent read the user agreement please do so here -
- - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/rarbg/torrent-page.html b/src/test/resources/rarbg/torrent-page.html deleted file mode 100755 index 8ce5c2b0..00000000 --- a/src/test/resources/rarbg/torrent-page.html +++ /dev/null @@ -1,276 +0,0 @@ - Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.720p.WEB.h264-CAFFEiNE[rartv] Torrent download - -
- - - - - - - - - -
-rarbg torrents - - - -
- - -
- - - - - - -
-
-
- - -
-
-
- - -
- - - -
  Guest (Login)TorrentsBox officeCatalogTop 10News
- -
- - - -
-
-
View all
Movies
XXX
TV Shows
Games
Music
Software
Non XXX
 
Trailers
Catalog
Box Office
 
New index
 
-

Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.720p.WEB.h264-CAFFEiNE[rartv]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Torrent: Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.720p.WEB.h264-CAFFEiNE[rartv]
VPN: - - - - - - -
Downloading torrents is getting riskier every day. Use a VPN to make yourself hidden while downloading torrents.
By using a VPN , your ISP and Government Agencies will not be able to spy on you, neither would they be able to track your online activity!
-
Episode Info: - 2022-09-16 43E11 Stuffed, Smoked and Wrapped -
Poster:
Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.720p.WEB.h264-CAFFEiNE[rartv]
Others:
QualityResSoundCodecNameS.L.Size

 

Description:
-
-
-Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.720p.WEB.h264-CAFFEiNE
-
-DATE.....: 09.17.2022
-TIME.....: 0h21m0s
-RES......: 1280 x 720
-VIDEO....: H.264 @ 1802 kb/s
-AUDIO....: AAC @ 125 kb/s
MediaInfo »
---
Trailer: Play trailer
https://www.thetvdb.com/series/diners-drive-ins-and-dives
https://www.tvmaze.com/shows/2459/diners-drive-ins-and-dives
Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.720p.WEB.h264-CAFFEiNE[rartv]https://www.imdb.com/title/tt1020913/
Rating:

Rating: 0.0/5 (0 votes cast)

Category:Movies/TV-HD-episodes
Size:290.03 MB
Show Files » -
4 files
-
Added:2022-09-18 04:42:40
Title:Diners, Drive-ins and Dives (TV Series 2006- )
IMDB Rating:7.3/10 from 4037 users Updated : 2022-09-16
Genres:Reality-TV
Actors:Guy Fieri , Hunter Fieri , Ryder Fieri , Jules Fieri , Lori Fieri , Stretch , Bob Creager , Benny Lin , G. Garvin ,
Justin Warner , Gus Tselios , Jim Ferry , Jay Hajj , Donna Creager , Duff Goldman , Reno Henriques , Carl Ruiz , Richard Hales
IMDB Runtime:30
Year:2006
Plot:Food Network's Guy Fieri rolls out to visit America's favorite diners, drive-ins and dives, interviewing the owners of the food establishments and samples the
items on their menus.
Show NFO »
---
Peers:Seeders : 64 , Leechers : 5 = 69
Hit&Run:86%
Tags:Diners Drive Ins and Dives S43E11 Stuffed Smoked and Wrapped 720p WEB h264 CAFFEiNE rartv
Release name:Diners.Drive-Ins.and.Dives.S43E11.Stuffed.Smoked.and.Wrapped.720p.WEB.h264-CAFFEiNE[rartv]
- - - - -
-
-
-
-
-
-
-
-


-
-
-SUPPORT : support@rarbg.to FAQ/Rules DMCA : spam@rarbg.to DMCA INFO HERE : DMCA Info
-
-Sun, 18 Sep 2022 12:27:15 +0200
-
- -
-"Girls Out West Milf Silvia Sai angel youngs brothers 2009 1 Chechik karmen
- -
-
- -Powered by hamsters 1.0
-By using this site you agree to and accept our user agreement. If you havent read the user agreement please do so here -
- - - - - - - - - - - - - - - - - - \ No newline at end of file