2021-05-18, 14:26
I found a 10 part Python course from StackSkills for $23USD, not a bad price at all!
(2021-05-18, 14:26)kenmills Wrote: not a bad price at all!
(2021-05-18, 14:54)Klojum Wrote: @jbinkley60 How are you selecting the value for ContentDeleteURL in your program?
(2021-05-18, 13:21)jbinkley60 Wrote: For Python learning I highly recommend LeanPub Python Apprentice .. It's PDF and not online and has a small cost but it is very good. They have an online version but I am not sure how much it is.
Script aborted - No changes made
causes this text to horizontally scroll because it's just a few characters too long. How about Exit - No changes made
?Run "Clean Video Library" for best results
Starting Up
to Scanning library...
. Starting is itself a 'duh' moment for me.php:FUNCTION movieset_remove()
{
# GET ALL SET IDs
$sets = array();
$row_aff = 0 ;
$row_cnt = 0 ;
$query = "SELECT idSet,strSet FROM sets ORDER BY idSet ASC";
$result = do_query($query, 'video', 'Movieset IDs');
# PLACE INTO ARRAY FOR DOUBLECHECK
while ($row = $result->fetch_assoc())
{
$sets[] = $row['idSet'];
$fanart[] = $row['strSet'];
}
# CHECK MOVIES FOR SETIDs
foreach ($sets as $set => $value)
{
$query = 'SELECT idSet FROM movie WHERE idSet='.$value;
$result = do_query($query, 'video', 'Movies in set');
$row_cnt = $result->num_rows;
# CHANGE TO <= 1 FOR REMOVING SETS TO MOVIES WITH ONLY 1 MOVIESET
if ($row_cnt == 0)
{
# REMOVE SET
$subquery = 'DELETE FROM idSet WHERE idSet='.$value;
$subresult = do_query($query, 'video', 'Remove movieset');
$row_aff += $subresult->affected_rows;
# REMOVE MOVIESET FANART FROM MOVIESET FOLDER
$folder = MOVIESET_PATH . $fanart[$set];
# REMOVE REMARK CHARS FOR ACTUAL FOLDER DELETE
// unlink($folder);
}
}
return ($row_aff);
}
(2021-05-22, 19:25)Klojum Wrote: I'm still browsing and learning if the current Python scripts can do what I want them to do. I need to combine script snippets and see if they work for me.
The only beef I have with Python for now is to maintain the 80 char line limit... I'll try, but I'm definitely not gonna make any promises
(2021-05-22, 19:25)Klojum Wrote: I'm still browsing and learning if the current Python scripts can do what I want them to do. I need to combine script snippets and see if they work for me.
The only beef I have with Python for now is to maintain the 80 char line limit... I'll try, but I'm definitely not gonna make any promises