Skip to content

Commit

Permalink
新增iyuu插件
Browse files Browse the repository at this point in the history
  • Loading branch information
xqw8889 committed Apr 23, 2024
1 parent 45a27fa commit 0771698
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3119,6 +3119,7 @@ function deletetorrent($id, $notify = false) {
->get(['id', 'pieces_hash'])
->KeyBy("id")
;
do_action('IyuuPushTorren_Deletehhash', $id);
$torrentRep = new \App\Repositories\TorrentRepository();
$idStr = implode(', ', $idArr ?: [0]);
$torrent_dir = get_setting('main.torrent_dir');
Expand Down
1 change: 1 addition & 0 deletions public/details.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
$taxonomyRendered .= sprintf('&nbsp;&nbsp;&nbsp;<b>%s: </b>%s', $item['label'], $item['value']);
}
tr($lang_details['row_basic_info'], $size_info.$type_info.$taxonomyRendered, 1);
do_action('IyuuPushTorren_torrent', $id);
$actions = [];
if ($CURUSER["downloadpos"] != "no") {
$hasBuy = \App\Models\TorrentBuyLog::query()->where('uid', $CURUSER['id'])->where('torrent_id', $id)->exists();
Expand Down
1 change: 1 addition & 0 deletions public/takeupload.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ function checkTorrentDict($dict, $key, $type = null)
* @since v1.6
*/
$tagIdArr = array_filter($_POST['tags'][$catmod] ?? []);
do_action('IyuuPushTorren_addhash',$tagIdArr,$id);
if (!empty($tagIdArr)) {
insert_torrent_tags($id, $tagIdArr);
}
Expand Down

0 comments on commit 0771698

Please sign in to comment.