WP-CLI

These are the custom WP CLI commands used for maintenance. SSH/shell access is required, and most can be re-run from the UX.

Calculations

Re-run any calculation generations on shows or actors:

  • wp lwtv calc show [ID] 
  • wp lwtv calc actor [ID] 

Example:

wp lwtv calc actor 17338
Success: Calculations run for Andrea Torres: Is Queer (Yes) Chars (1) Dead (0)

Find

Find post content missing specific flags.

Queerchars

  • wp lwtv find queerchars

This command will list all characters flagged as queer-irl without any actors who are queer, as well as any characters not marked queer when they have at least one queer actor.

WikiData

Validate our data on an actor with WikiData. Of note, sometimes WikiData gets the wrong user and you always have to check if it’s right.

  • wp lwtv wiki actor [ID]

Example:

$ wp lwtv wiki actor 17338
Success: WikiData comparison for Andrea Torres complete!
+-------+---------------------+----------+---------------------+-------+---------------------+----------------------------+-----------+---------+---------+
| id    | name                | wikidata | birth               | death | imdb                | wikipedia                  | instagram | twitter | website |
+-------+---------------------+----------+---------------------+-------+---------------------+----------------------------+-----------+---------+---------+
| 17338 | Andrea Torres       | Q4755305 | {"ours":"","wikidat | match | {"ours":"","wikidat | {"ours":"","wikidata":"htt | match     | match   | match   |
|       |                     |          | a":"1990-05-04"}    |       | a":"nm1915640"}     | ps:\/\/en.wikipedia.org\/w |           |         |         |
|       |                     |          |                     |       |                     | iki\/Andrea_Torres"}       |           |         |         |
+-------+---------------------+----------+---------------------+-------+---------------------+----------------------------+-----------+---------+---------+

TV Maze

  • wp lwtv tvmaze

Rebuilds the TV Maze ics file, used to generate the calendar.