This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/bulk_add_csv/info.php

30 lines
1.2 KiB
PHP
Raw Normal View History

2021-12-14 18:32:47 +00:00
<?php
declare(strict_types=1);
namespace Shimmie2;
class BulkAddCSVInfo extends ExtensionInfo
{
public const KEY = "bulk_add_csv";
public string $key = self::KEY;
public string $name = "Bulk Add CSV";
public string $url = self::SHIMMIE_URL;
2023-11-11 21:49:12 +00:00
public array $authors = ["velocity37" => "velocity37@gmail.com"];
public string $license = self::LICENSE_GPLV2;
public string $description = "Bulk add server-side posts with metadata from CSV file";
public ?string $documentation =
2024-08-31 16:05:18 +00:00
"Adds posts from a CSV with the five following values:
2024-06-11 15:02:52 +00:00
<pre><code>\"/path/to/image.jpg\",\"spaced tags\",\"source\",\"rating s/q/e\",\"/path/thumbnail.jpg\"</code></pre>
<b>e.g.</b> <pre><code>\"/tmp/cat.png\",\"shish oekaki\",\"http://shimmie.shishnet.org\",\"s\",\"tmp/custom.jpg\"</code></pre>
2024-01-17 22:42:52 +00:00
Any value but the first may be omitted, but there must be five values per line.
2024-06-11 15:02:52 +00:00
<b>e.g.</b> <pre><code>\"/why/not/try/bulk_add.jpg\",\"\",\"\",\"\",\"\"</code></pre>
2024-01-17 22:42:52 +00:00
Useful for importing tagged posts without having to do database manipulation.
2020-10-26 15:25:27 +00:00
<p><b>Note:</b> requires \"Admin Controls\" and optionally \"Post Ratings\" to be enabled<br><br>";
public ExtensionCategory $category = ExtensionCategory::FILE_HANDLING;
}