Skip to content

Commit

Permalink
1.去掉网盘打开
Browse files Browse the repository at this point in the history
2.更新json
3.黑暗模式适配
  • Loading branch information
youusername committed Nov 4, 2019
1 parent 7c33265 commit 2524cb4
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 85 deletions.
25 changes: 7 additions & 18 deletions magnetX/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@
<tableColumns>
<tableColumn identifier="siteCell" width="97" minWidth="40" maxWidth="1000" id="M4W-a7-Uye">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="源网站">
<font key="font" metaFont="smallSystem"/>
<font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
Expand Down Expand Up @@ -738,12 +738,12 @@
<rect key="frame" x="0.0" y="0.0" width="762" height="514"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" red="0.55686274509803924" green="0.55686274509803924" blue="0.57647058823529407" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<tableColumns>
<tableColumn identifier="nameCell" width="530" minWidth="40" maxWidth="1000" id="pIb-4I-zyV">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="标题">
<font key="font" metaFont="smallSystem"/>
<font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
Expand Down Expand Up @@ -783,7 +783,7 @@
</tableColumn>
<tableColumn identifier="sizeCell" width="64" minWidth="40" maxWidth="500" id="vmv-A4-Je8">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="center" title="文件大小">
<font key="font" metaFont="smallSystem"/>
<font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
Expand Down Expand Up @@ -816,7 +816,7 @@
</tableColumn>
<tableColumn identifier="countCell" width="85" minWidth="10" maxWidth="3.4028234663852886e+38" id="OGM-QT-mVz">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="center" title="文件数量or时间">
<font key="font" metaFont="smallSystem"/>
<font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tableHeaderCell>
Expand Down Expand Up @@ -849,7 +849,7 @@
</tableColumn>
<tableColumn identifier="sourceCell" width="70" minWidth="10" maxWidth="3.4028234663852886e+38" id="swz-gu-RxO">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="center" title="来源">
<font key="font" metaFont="smallSystem"/>
<font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tableHeaderCell>
Expand All @@ -864,7 +864,7 @@
<rect key="frame" x="689" y="1" width="70" height="30"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField hidden="YES" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="hSX-hS-KNx">
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="hSX-hS-KNx">
<rect key="frame" x="0.0" y="7" width="70" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="center" title="cililian.me" id="9nn-Zh-XnQ">
Expand All @@ -873,17 +873,6 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Rwb-Lc-Vkf">
<rect key="frame" x="-11" y="-1" width="94" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="push" title="网盘打开" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="kDn-6W-0gI">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
<action selector="openPan:" target="SeO-wd-xgI" id="de8-qF-iXB"/>
</connections>
</button>
</subviews>
<connections>
<outlet property="textField" destination="hSX-hS-KNx" id="oGP-db-0sx"/>
Expand Down
2 changes: 1 addition & 1 deletion magnetX/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.0</string>
<string>1.2.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
Expand Down
132 changes: 66 additions & 66 deletions rule.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
[

{
"site": "磁力果",
"waiting": "0",
"group": "//div[@class\u003d\"card mb-4\"]",
"magnet": "./div[1]/div[2]/div/button[1]/@data-src",
"name": "./div[1]/div[1]/a",
"size": "./div[2]/div/div[1]/small[2]/span",
"count": "./div[2]/div/div[1]/small[1]/span",
"source": "https://ciliguo.cc/search?q\u003dXXX\u0026p\u003dPPP"
},
{
"site": "种子搜",
"waiting": "0",
Expand All @@ -7,28 +18,7 @@
"name": "./tbody/tr[1]/td/div/h4/a",
"size": "./tbody/tr/td[2]/strong",
"count": "./tbody/tr/td[1]/strong",
"source": "https://www.zhongzilou.com/list/XXX/PPP"
},

{
"site": "MAG磁力站",
"waiting": "0",
"group": "//ul[@class\u003d\u0027link-list\u0027]",
"magnet": "./li/@data-magnet",
"name": "./li/span[1]",
"size": "./li/span[2]/span[1]",
"count": "./li/span[2]/span[2]",
"source": "http://oabt005.com/index/index/k/XXX/p/PPP"
},
{
"site": "磁力王",
"waiting": "0",
"group": "//div[@class\u003d\"single_cont\"]",
"magnet": "*//h3/a/@data-src",
"name": "*//h3/a",
"size": "*//li[2]/span",
"count": "*//li[1]/text()",
"source": "https://www.ciliwang.club/list.html?keyword\u003dXXX\u0026page\u003dPPP"
"source": "https://www.zhongzihu.com/list/XXX/PPP"
},
{
"site": "BT蚂蚁",
Expand All @@ -40,16 +30,6 @@
"count": "./div[@class\u003d\u0027item-bar\u0027]/span[1]/b",
"source": "http://www.btdet.com/search/XXX-first-asc-PPP"
},
{
"site": "BT4G",
"waiting": "0",
"group": "//div[@class\u003d\u0027search-item detail-width\u0027]",
"magnet": "./div[1]/h3/a/@href",
"name": "./div[1]/h3/a",
"size": "./div[3]/span[4]/b",
"count": "./div[3]/span[2]/b",
"source": "https://cn.bt4g.com/search/XXX/PPP"
},
{
"site": "Nyaa(动漫)",
"waiting": "0",
Expand All @@ -60,6 +40,16 @@
"count": "./td[5]",
"source": "https://nyaa.si?q\u003dXXX\u0026p\u003dPPP"
},
{
"site": "磁力王",
"waiting": "0",
"group": "//div[@class\u003d\"single_cont\"]",
"magnet": "./ul[1]/li/h3/a/@data-src",
"name": "./ul[1]/li/h3/a",
"size": "./ul[2]/li[2]/span",
"count": "./ul[2]/li[1]/text()",
"source": "https://www.ciliwang.live/list.html?keyword\u003dXXX\u0026page\u003dPPP\u0026sort\u003dai"
},
{
"site": "动漫花园",
"waiting": "0",
Expand All @@ -80,26 +70,6 @@
"count": "./td[5]",
"source": "https://sukebei.nyaa.si?q\u003dXXX\u0026p\u003dPPP"
},
{
"site": "BTSOW",
"waiting": "0",
"group": "//div[@class\u003d\u0027row\u0027]",
"magnet": "./a/@href",
"name": "./a/div[1]",
"size": "./div[1]",
"count": "./div[2]",
"source": "https://btspread.com/search/XXX/page/PPP"
},
{
"site": "Torrentz2",
"waiting": "0",
"group": "//div[@class\u003d\"results\"]/dl",
"magnet": "./dt/a/@href",
"name": "./dt/a",
"size": "./dd/span[3]",
"count": "./dd/span[2]",
"source": "https://www.torrentz2.eu/search?f\u003dXXX\u0026p\u003dPPP"
},
{
"site": "idope",
"waiting": "0",
Expand All @@ -111,14 +81,24 @@
"source": "https://idope.se/torrent-list/XXX/?p\u003dPPP"
},
{
"site": "SkrBT",
"site": "BT4G",
"waiting": "0",
"group": "//li[@class\u003d\u0027search-ret-item\u0027]",
"magnet": "./h2/a/@href",
"name": "./h2/a",
"size": "./div/span[1]",
"count": "./div/span[3]",
"source": "https://www.skrbt.world/search?keyword\u003dXXX\u0026s\u003drelevance\u0026p\u003dPPP"
"group": "/html/body/main/div/div[3]/div/div",
"magnet": "./h5/a/@href",
"name": "./h5/a",
"size": "./span[4]/b",
"count": "./span[2]/b",
"source": "https://cn.bt4g.com/search/XXX/PPP"
},
{
"site": "MAG磁力站",
"waiting": "0",
"group": "//ul[@class\u003d\u0027link-list\u0027]",
"magnet": "./li/@data-magnet",
"name": "./li/span[1]",
"size": "./li/span[2]/span[1]",
"count": "./li/span[2]/span[2]",
"source": "http://oabt005.com/index/index/k/XXX/p/PPP"
},
{
"site": "磁力柠檬",
Expand All @@ -131,13 +111,33 @@
"source": "https://lemencili1.xyz/search?keyword\u003dXXX\u0026s\u003drelevance\u0026p\u003dPPP"
},
{
"site": "卧槽搜搜",
"site": "SkrBT",
"waiting": "0",
"group": "//td[@class\u003d\u0027x-item\u0027]",
"magnet": "./h3/a/@href",
"name": "./h3/a",
"size": "./span[4]/b",
"count": "./span[2]/b",
"source": "http://www.wcs777.com/s/XXX-first-asc-PPP"
"group": "//ul[@class\u003d\u0027list-unstyled\u0027]",
"magnet": "./li[2]/a/@href",
"name": "./li[1]/a",
"size": "./li[2]/span[1]",
"count": "./li[2]/span[3]",
"source": "https://www.skrbt.world/search?keyword\u003dXXX\u0026s\u003drelevance\u0026p\u003dPPP"
},
{
"site": "BTSOW",
"waiting": "0",
"group": "//div[@class\u003d\u0027row\u0027]",
"magnet": "./a/@href",
"name": "./a/div[1]",
"size": "./div[1]",
"count": "./div[2]",
"source": "https://btspread.com/search/XXX/page/PPP"
},
{
"site": "KickassTorrents",
"waiting": "0",
"group": "//tr[@class\u003d\u0027odd\u0027]",
"magnet": "./td[1]/div[2]/div/a/@href",
"name": "./td[1]/div[2]/div/a",
"size": "./td[2]",
"count": "./td[4]",
"source": "https://kickasstorrents.to/usearch/XXX/PPP"
}
]

0 comments on commit 2524cb4

Please sign in to comment.