Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Abnormal #296

Open
kaypoush opened this issue Dec 17, 2021 · 2 comments
Open

Add Abnormal #296

kaypoush opened this issue Dec 17, 2021 · 2 comments

Comments

@kaypoush
Copy link

Hi,

Please add Abnormal. Tracker file provided by the site:


<!-- ***** BEGIN LICENSE BLOCK *****

   - Version: MPL 1.1

   -

   - The contents of this file are subject to the Mozilla Public License Version

   - 1.1 (the "License"); you may not use this file except in compliance with

   - the License. You may obtain a copy of the License at

   - http://www.mozilla.org/MPL/

   -

   - Software distributed under the License is distributed on an "AS IS" basis,

   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License

   - for the specific language governing rights and limitations under the

   - License.

   -

   - The Original Code is IRC Auto Downloader.

   -

   - The Initial Developer of the Original Code is

   - David Nilsson.

   - Portions created by the Initial Developer are Copyright (C) 2010, 2011

   - the Initial Developer. All Rights Reserved.

   -

   - Contributor(s):

   -

   - ***** END LICENSE BLOCK ***** -->



<trackerinfo

        type="abn"

        shortName="ABN"

        longName="Abnormal"

        siteName="abn.lol">



        <settings>

                <!--https://abn.lol/Feed/Subscriptions?UserId=XXXXX&TorrentKey=XXXXXXXXXX-->

                <description text="Paste (Ctrl+V) any Abnormal torrent direct download (RSS) link into any one of the two text boxes below to automatically extract TorrentKey and UserId."/>

                <textbox

                        name="uid"

                        text="uid"

                        accesskey="i"

                        tooltiptext="The UserId in any Abnormal torrent direct download (RSS) link."

                        pasteGroup="uid,passkey"

                        pasteRegex="[\?&]UserId=(\d+)"

                />

                <passkey

                        tooltiptext="The TorrentKey in any Abnormal torrent direct download (RSS) link."

                        pasteGroup="uid,passkey"

                        pasteRegex="[\?&]TorrentKey=([\da-z]{32})"

                />

        </settings>



        <servers>

                <server

                        network="Abnormal"

                        serverNames="irc.abn.lol"

                        channelNames="#announce"

                        announcerNames="ABN_BOT"

                        />

        </servers>



        <parseinfo>

                <linepatterns>

                        <extract>

                                <!--|2021/06/20 22:38:52| |https://abn.lol/Torrent/Details?ReleaseId=240502| : |Law.and.Order.True.Crime.S01E02.MULTi.1080p.WEB.H264-FREAMON|-->

                                <regex value="^\s*\|.+\|\s*\|https?\:\/\/([^\/]+\/).*[&\?]ReleaseId\=(\d+)\|[\s:]+\|([^|]+)\|\s*$"/>

                                <vars>

                                        <var name="$baseUrl"/>

                                        <var name="$torrentId"/>

                                        <var name="torrentName"/>

                                </vars>

                        </extract>

                </linepatterns>

                <linematched>

                        <var name="torrentUrl">

                                <!--https://abn.lol/Feed/Download?UserId=XXXXX&TorrentKey=XXXXXXXXXXXX&ReleaseId=XXXXXX-->

                                <string value="https://"/>

                                <var name="$baseUrl"/>

                                <string value="Feed/Download?UserID="/>

                                <var name="uid"/>

                                <string value="&TorrentKey="/>

                                <var name="passkey"/>

                                <string value="&ReleaseId="/>

                                <var name="$torrentId"/>

                        </var>

                </linematched>

                <ignore>

                </ignore>

        </parseinfo>

</trackerinfo>```
@Lorenz1508
Copy link

@kaypoush this error message occurs each time when i save this file in the folder ~/.irssi/scripts/AutodlIrssi/trackers/

Tracker with type 'flr' has already been added. | 10:28:30 -!- Irssi: Successfully loaded tracker files | 10:50:23 -!- Irssi: ERROR: Could not parse '/home/lorenz/.irssi/scripts/AutodlIrssi/trackers/ABNormal.tracker': Error: Error parsing /home/lorenz/.irssi/scripts/AutodlIrssi/trackers/ABNormal.tracker: | /home/lorenz/.irssi/scripts/AutodlIrssi/trackers/ABNormal.tracker:81: parser error : xmlParseEntityRef: no name | 10:50:23 -!- Irssi: pasteRegex="[\?&]UserId=(\d+)" | 10:50:23 -!- Irssi: ^ | 10:50:23 -!- Irssi: /home/lorenz/.irssi/scripts/AutodlIrssi/trackers/ABNormal.tracker:91: parser error : xmlParseEntityRef: no name | 10:50:23 -!- Irssi: pasteRegex="[\?&]TorrentKey=([\da-z]{32})" | 10:50:23 -!- Irssi: ^ | 10:50:23 -!- Irssi: /home/lorenz/.irssi/scripts/AutodlIrssi/trackers/ABNormal.tracker:125: parser error : xmlParseEntityRef: no name | 10:50:23 -!- Irssi: <regex value="^\s*\|.+\|\s*\|https?\:\/\/([^\/]+\/).*[& | 10:50:23 -!- Irssi: ^ | 10:50:23 -!- Irssi: /home/lorenz/.irssi/scripts/AutodlIrssi/trackers/ABNormal.tracker:155: parser error : EntityRef: expecting ';' | 10:50:23 -!- Irssi: <string value="&TorrentKey="/> | 10:50:23 -!- Irssi: ^ | 10:50:23 -!- Irssi: /home/lorenz/.irssi/scripts/AutodlIrssi/trackers/ABNormal.tracker:159: parser error : EntityRef: expecting ';' | 10:50:23 -!- Irssi: <string value="&ReleaseId="/> | 10:50:23 -!- Irssi: ^ | 10:50:23 -!- Irssi:

@kaypoush
Copy link
Author

kaypoush commented Jun 2, 2022

@Lorenz1508 Probably some formatting issue try this instead:

<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
   - Version: MPL 1.1
   -
   - The contents of this file are subject to the Mozilla Public License Version
   - 1.1 (the "License"); you may not use this file except in compliance with
   - the License. You may obtain a copy of the License at
   - http://www.mozilla.org/MPL/
   -
   - Software distributed under the License is distributed on an "AS IS" basis,
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
   - for the specific language governing rights and limitations under the
   - License.
   -
   - The Original Code is IRC Auto Downloader.
   -
   - The Initial Developer of the Original Code is
   - David Nilsson.
   - Portions created by the Initial Developer are Copyright (C) 2010, 2011
   - the Initial Developer. All Rights Reserved.
   -
   - Contributor(s):
   -
   - ***** END LICENSE BLOCK ***** -->

<trackerinfo
        type="abn"
        shortName="ABN"
        longName="Abnormal"
        siteName="abn.lol">

        <settings>
                <!--https://abn.lol/Feed/Subscriptions?UserId=XXXXX&TorrentKey=XXXXXXXXXX-->
                <description text="Paste (Ctrl+V) any Abnormal torrent direct download (RSS) link into any one of the two text boxes below to automatically extract TorrentKey and UserId."/>
                <textbox
                        name="uid"
                        text="uid"
                        accesskey="i"
                        tooltiptext="The UserId in any Abnormal torrent direct download (RSS) link."
                        pasteGroup="uid,passkey"
                        pasteRegex="[\?&amp;]UserId=(\d+)"
                />
                <passkey
                        tooltiptext="The TorrentKey in any Abnormal torrent direct download (RSS) link."
                        pasteGroup="uid,passkey"
                        pasteRegex="[\?&amp;]TorrentKey=([\da-z]{32})"
                />
        </settings>

        <servers>
                <server
                        network="Abnormal"
                        serverNames="irc.abn.lol"
                        channelNames="#announce"
                        announcerNames="ABN_BOT"
                        />
        </servers>

        <parseinfo>
                <linepatterns>
                        <extract>
                                <!--|2021/06/20 22:38:52| |https://abn.lol/Torrent/Details?ReleaseId=240502| : |Law.and.Order.True.Crime.S01E02.MULTi.1080p.WEB.H264-FREAMON|-->
                                <regex value="^\s*\|.+\|\s*\|https?\:\/\/([^\/]+\/).*[&amp;\?]ReleaseId\=(\d+)\|[\s:]+\|([^|]+)\|\s*$"/>
                                <vars>
                                        <var name="$baseUrl"/>
                                        <var name="$torrentId"/>
                                        <var name="torrentName"/>
                                </vars>
                        </extract>
                </linepatterns>
                <linematched>
                        <var name="torrentUrl">
                                <!--https://abn.lol/Feed/Download?UserId=XXXXX&TorrentKey=XXXXXXXXXXXX&ReleaseId=XXXXXX-->
                                <string value="https://"/>
                                <var name="$baseUrl"/>
                                <string value="Feed/Download?UserID="/>
                                <var name="uid"/>
                                <string value="&amp;TorrentKey="/>
                                <var name="passkey"/>
                                <string value="&amp;ReleaseId="/>
                                <var name="$torrentId"/>
                        </var>
                </linematched>
                <ignore>
                </ignore>
        </parseinfo>
</trackerinfo>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants