mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-09-12 21:57:19 -04:00
Libation never had a copyright of its own to fall back on: it only cleaned up whatever the .aaxc file already embedded. Widevine downloads carry no cprt at all, so they came out blank. The copyright line is only returned by the product_details response group, so request it on the full library scan, store it on Book, and use it as the tag fallback. Existing libraries pick it up on their next scan, and Audible still returns null for plenty of titles. Co-authored-by: rmcrackan <rmcrackan@gmail.com>
29 lines
728 B
C#
29 lines
728 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace DataLayer.Postgres.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddBookCopyright : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Copyright",
|
|
table: "Books",
|
|
type: "text",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Copyright",
|
|
table: "Books");
|
|
}
|
|
}
|
|
}
|