• 1
  • 2
  • 3(current)
  • 4
  • 5
  • 8
Release myth2kodi -- generate Kodi friendly file-names from MythTV recordings.
#31
(2017-02-24, 05:07)stuartk Wrote:
(2017-02-24, 03:15)jctennis Wrote:
Code:
tvgserver@tvserver-OptiPlex-760:/media/Storage/myth2kodi$ /usr/bin/env bash
tvgserver@tvserver-OptiPlex-760:/media/Storage/myth2kodi$ EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury'
tvgserver@tvserver-OptiPlex-760:/media/Storage/myth2kodi$ agrep -iByn "^$EpisodeSubtitle" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt"
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:/media/Storage/myth2kodi$ agrep -iByn "^$EpisodeSubtitle" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 ^
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:/media/Storage/myth2kodi$ agrep -iByn "^$EpisodeSubtitle" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 ^ | sed 's/:.*//'
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:/media/Storage/myth2kodi$

Does that help at all?

Yes, that definately helps, the agrep on my system does not
have that limitation. I think I have a fix, just to confirm,
could you post the output of:

Code:
/usr/bin/env bash

EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury'
agrep -iByn "^${EpisodeSubtitle:0:32}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt"
agrep -iByn "^${EpisodeSubtitle:0:30}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt"
agrep -iByn "^${EpisodeSubtitle:0:30}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 ^ | cut -d':' -f1

Thanks.
Code:
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-64-generic x86_64)

* Documentation:  https://help.ubuntu.com/

3 packages can be updated.
3 updates are security updates.

New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2019.
Last login: Thu Feb 23 20:12:13 2017 from 192.168.1.219
tvgserver@tvserver-OptiPlex-760:~$ /usr/bin/env bash
tvgserver@tvserver-OptiPlex-760:~$ EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury'
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:32}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt"
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:30}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt"
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:30}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 ^ | cut -d':' -f1
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$
Reply
#32
(2017-02-24, 05:22)jctennis Wrote:
Code:
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-64-generic x86_64)

* Documentation:  https://help.ubuntu.com/

3 packages can be updated.
3 updates are security updates.

New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2019.
Last login: Thu Feb 23 20:12:13 2017 from 192.168.1.219
tvgserver@tvserver-OptiPlex-760:~$ /usr/bin/env bash
tvgserver@tvserver-OptiPlex-760:~$ EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury'
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:32}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt"
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:30}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt"
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:30}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 ^ | cut -d':' -f1
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$

OK, so, it seems the error message is wrong (should be "> 31" or ">= 32") or there is more than one blank character...
Hopefully last command, with the EpisodeSubtitle variable set as before:
Code:
echo "^${EpisodeSubtitle:0:30}" | wc
Reply
#33
(2017-02-24, 05:53)stuartk Wrote:
(2017-02-24, 05:22)jctennis Wrote:
Code:
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-64-generic x86_64)

* Documentation:  https://help.ubuntu.com/

3 packages can be updated.
3 updates are security updates.

New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2019.
Last login: Thu Feb 23 20:12:13 2017 from 192.168.1.219
tvgserver@tvserver-OptiPlex-760:~$ /usr/bin/env bash
tvgserver@tvserver-OptiPlex-760:~$ EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury'
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:32}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt"
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:30}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt"
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:30}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 ^ | cut -d':' -f1
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$

OK, so, it seems the error message is wrong (should be "> 31" or ">= 32") or there is more than one blank character...
Hopefully last command, with the EpisodeSubtitle variable set as before:
Code:
echo "^${EpisodeSubtitle:0:30}" | wc
Code:
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-64-generic x86_64)

* Documentation:  https://help.ubuntu.com/

3 packages can be updated.
3 updates are security updates.

New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2019.
Last login: Thu Feb 23 22:21:05 2017 from 192.168.1.113
tvgserver@tvserver-OptiPlex-760:~$ /usr/bin/env bash
tvgserver@tvserver-OptiPlex-760:~$ EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury
> ^C
tvgserver@tvserver-OptiPlex-760:~$ EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury'
tvgserver@tvserver-OptiPlex-760:~$ echo "^${EpisodeSubtitle:0:30}" | wc
      1       8      32
tvgserver@tvserver-OptiPlex-760:~$
Reply
#34
(2017-02-24, 05:57)jctennis Wrote:
Code:
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-64-generic x86_64)

* Documentation:  https://help.ubuntu.com/

3 packages can be updated.
3 updates are security updates.

New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2019.
Last login: Thu Feb 23 22:21:05 2017 from 192.168.1.113
tvgserver@tvserver-OptiPlex-760:~$ /usr/bin/env bash
tvgserver@tvserver-OptiPlex-760:~$ EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury
> ^C
tvgserver@tvserver-OptiPlex-760:~$ EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury'
tvgserver@tvserver-OptiPlex-760:~$ echo "^${EpisodeSubtitle:0:30}" | wc
      1       8      32
tvgserver@tvserver-OptiPlex-760:~$

Ok, sorry, definitely the last one because if this does not work I'm giving up for the day...
With the same bash, EpisodeSubtitle:
Code:
agrep -iByn "^${EpisodeSubtitle:0:29}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep -iByn "^${EpisodeSubtitle:0:28}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep -iByn "^${EpisodeSubtitle:0:27}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep -iByn "^${EpisodeSubtitle:0:26}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
Reply
#35
Code:
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-64-generic x86_64)

* Documentation:  https://help.ubuntu.com/

3 packages can be updated.
3 updates are security updates.

New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2019.
Last login: Thu Feb 23 22:54:34 2017 from 192.168.1.113
tvgserver@tvserver-OptiPlex-760:~$ /usr/bin/env bash                                tvgserver@tvserver-OptiPlex-760:~$ EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury'                                                     tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:29}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:28}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: 2 words match within 8 errors
9
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:27}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: 2 words match within 8 errors
9
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:26}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: 2 words match within 8 errors
9
tvgserver@tvserver-OptiPlex-760:~$
Reply
#36
(2017-02-24, 07:32)jctennis Wrote:
Code:
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-64-generic x86_64)

* Documentation:  https://help.ubuntu.com/

3 packages can be updated.
3 updates are security updates.

New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2019.
Last login: Thu Feb 23 22:54:34 2017 from 192.168.1.113
tvgserver@tvserver-OptiPlex-760:~$ /usr/bin/env bash                                tvgserver@tvserver-OptiPlex-760:~$ EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury'                                                     tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:29}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:28}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: 2 words match within 8 errors
9
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:27}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: 2 words match within 8 errors
9
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:26}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: 2 words match within 8 errors
9
tvgserver@tvserver-OptiPlex-760:~$
Thanks again for the feedback, the bug will be fixed in the next release. I've also been making some other changes and need to test things more thoroughly but the release should be ready by the end of the weekend, worst case next week sometime.

If you are feeling brave, the patched myth2kodi script is in the repo now...
Reply
#37
(2017-02-24, 08:00)stuartk Wrote:
(2017-02-24, 07:32)jctennis Wrote:
Code:
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-64-generic x86_64)

* Documentation:  https://help.ubuntu.com/

3 packages can be updated.
3 updates are security updates.

New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2019.
Last login: Thu Feb 23 22:54:34 2017 from 192.168.1.113
tvgserver@tvserver-OptiPlex-760:~$ /usr/bin/env bash                                tvgserver@tvserver-OptiPlex-760:~$ EpisodeSubtitle='How Dare You Do That to My Bulma Vegetas Metamorphosis of Fury'                                                     tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:29}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: pattern too long (has > 32 chars)
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:28}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: 2 words match within 8 errors
9
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:27}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: 2 words match within 8 errors
9
tvgserver@tvserver-OptiPlex-760:~$ agrep -iByn "^${EpisodeSubtitle:0:26}" "/media/Storage/myth2kodi/Dragon Ball Super/Dragon Ball Super.Ename.txt" | grep -m1 -o '^[0-9]*'
agrep: 2 words match within 8 errors
9
tvgserver@tvserver-OptiPlex-760:~$
Thanks again for the feedback, the bug will be fixed in the next release. I've also been making some other changes and need to test things more thoroughly but the release should be ready by the end of the weekend, worst case next week sometime.

If you are feeling brave, the patched myth2kodi script is in the repo now...
I went ahead and pulled the latest from github to test and it looks like you nailed it. Here is the output:
Code:
$ myth2kodi 1878_20170219010000.ts
DEBUG: ENTERING: log_rotation() ; CALLED FROM: m2k_init()
DEBUG: ENTERING: validate_settings() ; CALLED FROM: m2k_init()
DEBUG: myth2kodi script initialisation complete.
DEBUG: Running myth2kodi as mythtv
DEBUG: ENTERING: validate_args() ; CALLED FROM: main()
DEBUG: Called with 1 arguments. Called as:
       myth2kodi '1878_20170219010000.ts' "" "" "" '' ''
DEBUG: ENTERING: pre_process_check() ; CALLED FROM: validate_args()
       arg1: 1878_20170219010000.ts
DEBUG: Looks ok, FILE is named like a MythTV recording: 1878_20170219010000.ts
/usr/local/bin/myth2kodi: line 950: realpath: command not found
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
DEBUG: Arguments seem valid.
DEBUG: No command flag set. Processing as recording.
INFO: Processing: 1878_20170219010000.ts
DEBUG: ENTERING: process_mythtvdb() ; CALLED FROM: main()
DEBUG: ENTERING: get_mythtvdb_info() ; CALLED FROM: process_mythtvdb()
DEBUG: ENTERING: get_mythtvdb_info_pythonbindings() ; CALLED FROM: get_mythtvdb_info()
       m2kdir: /media/Storage/myth2kodi
       binpath: /usr/local/bin
       InputFileBasename: 1878_20170219010000.ts
       DBPin: 0000
       DBHostName: 192.168.1.78
       MySQLMythDb: mythconverg
       MySQLuser: mythtv
       MySQLpass: mythtv
       InputTitle:
       InputSubtitle:
       InputSeasonNum:
       InputEpisodeNum:
INFO: Accessing MythTV DataBase Using PythonBindings:
INFO: Attempting to pull database information on 1878_20170219010000.ts
DEBUG: Storing MythTV-DB info in temporary file: '/tmp/m2k_recinfo_2017-02-24T100355-mI5y'
mythdb_access: DEBUG:__main__:Establishing database connection
mythdb_access: DEBUG:__main__:Attempting to write data to file: /tmp/m2k_recinfo_2017-02-24T100355-mI5y
mythdb_access: DEBUG:__main__:Calling write_data()
mythdb_access: DEBUG:__main__:Operation complete.
mythdb_access: DEBUG:__main__:Closing out the file/stdout
DEBUG: Guide data as extracted by: get_mythtvdb_info_pythonbindings()
       chanid=1878
       starttime=2017-02-18 20:00:00-05:00
       endtime=2017-02-18 20:30:01-05:00
       title=Dragon Ball Super
       subtitle=How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!
       description=
       season=0
       episode=0
       category=Children
       hostname=tvserver-OptiPlex-760
       bookmark=0
       editing=0
       cutlist=0
       autoexpire=0
       commflagged=1
       recgroup=Default
       recordid=34
       seriesid=EP02576133
       programid=EP025761330007
       inetref=ttvdb.py_295068
       lastmodified=2017-02-21 02:42:03-05:00
       filesize=2208349520
       stars=0.0
       previouslyshown=0
       originalairdate=2017-02-18
       preserve=0
       findid=0
       deletepending=0
       transcoder=0
       timestretch=1.0
       recpriority=2
       basename=1878_20170219010000.ts
       progstart=2017-02-18 20:00:00-05:00
       progend=2017-02-18 20:30:00-05:00
       playgroup=Default
       profile=Default
       duplicate=1
       transcoded=0
       watched=1
       storagegroup=Default
       bookmarkupdate=2017-02-21 02:42:03-05:00
       recgroupid=1
       recordedid=1614
       inputname=5: MPEG2TS
       startdata[0]=0
       startdata[1]=22424
       startdata[2]=47035
       stopdata[0]=587
       stopdata[1]=30225
       stopdata[2]=54063
       xmltvgrabber=schedulesdirect1
DEBUG: Created a temporary comskip markupstart file: '/tmp/m2k_markupstart_2017-02-24T100355-V3Gx'
DEBUG: Created a temporary comskip markupstop file: '/tmp/m2k_markupstop_2017-02-24T100355-g5wx'
DEBUG: ENTERING: generate_comskip() ; CALLED FROM: get_mythtvdb_info_pythonbindings()
DEBUG: Created a temporary comskip markupframes file: '/tmp/m2k_markupframes_2017-02-24T100355-FHgZ'
DEBUG: COMMERCIAL DATA START:0 STOP:587
DEBUG: COMMERCIAL DATA START:22424 STOP:30225
DEBUG: COMMERCIAL DATA START:47035 STOP:54063
DEBUG: Not removing the temporary markup files: '/tmp/m2k_markupstart_2017-02-24T100355-V3Gx'; '/tmp/m2k_markupstop_2017-02-24T100355-g5wx'.
DEBUG: Setting the following variables based on MythTV-DB guide data:
       InputTitle=Dragon Ball Super
       InputSubtitle=How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!
       InputSeasonNum=0
       InputEpisodeNum=0
       ShowCategory=Children
       MovieAirDate=
       OriginalAirDate=2017-02-18
       StorageGroup=Default
       Stars=0.0
       Plot=
       LocalSeriesID=EP02576133
       ProgramID=EP025761330007
       ChanID=1878
       ShowStartTime=2017-02-18 20:00:00-05:00
       XMLTVGrabber=schedulesdirect1
DEBUG: Not removing the temporary MythTV-DB info file: '/tmp/m2k_recinfo_2017-02-24T100355-mI5y'
DEBUG: ENTERING: process_mythtvdb_schedulesdirect() ; CALLED FROM: process_mythtvdb()
INFO: Processing MythTV database info as SchedulesDirect.
DEBUG: Input and MythTV-DB guide data for 1878_20170219010000.ts
       RECSTART:2017-02-18 20:00:00-05:00
       DATE: 2017-02-18
       PROGRAMID:EP025761330007
       ShowCategory:Children
       InputTitle:Dragon Ball Super
       InputSubtitle:How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!
       Sxx: UNKNOWN
       Exx: UNKNOWN
       PLOT:
DEBUG: ENTERING: show_translation() ; CALLED FROM: main()
INFO: USER TRANSLATION: Dragon Ball Super = Dragon Ball Super
DEBUG: ENTERING: process_ignore_lists() ; CALLED FROM: main()
DEBUG: ENTERING: periodic_maintenace() ; CALLED FROM: main()
DEBUG: ENTERING: download_series_identification() ; CALLED FROM: main()
INFO: SEARCHING www.TheTVDB.com FOR Dragon%20Ball%20Super
DEBUG: Created a temporary zap2it file: '/tmp/m2k_zap2it_2017-02-24T100355-b1bk'
DEBUG: Not removing the temporary working file: '/tmp/m2k_working_2017-02-24T100355-ShGe'
DEBUG: ENTERING: get_serieslinenumber_zap2itid() ; CALLED FROM: main()
DEBUG: TESTING FOR ZAP2ITID MATCH: Dragon Ball Super
WARNING: get_serieslinenumber_zap2itid(): couldn't find serieslinenumber with Zap2itSeriesID
DEBUG: ENTERING: get_serieslinenumber_showname() ; CALLED FROM: main()
DEBUG: ENTERING: set_seriesid_newshowname_from_serieslinenumber() ; CALLED FROM: main()
INFO: FOUND:Dragon Ball Super ID#:295068 WITH CONFIDENCE:-1
DEBUG: ENTERING: make_m2k_database_dir() ; CALLED FROM: main()
DEBUG: ENTERING: check_m2k_database_up_to_date() ; CALLED FROM: main()
INFO: DATABASE MAINTAINED. Current: 1487948098. Next update: 1488134563.
INFO: Processing SeriesID:295068
DEBUG: ENTERING: set_absolute_episode_number_by_airdate() ; CALLED FROM: main()
WARNING: AIRDATE FAILED. TITLE MATCH ON ABSOLUTE EPISODE NUMBER:
DEBUG: ENTERING: set_absolute_episode_number_by_ename() ; CALLED FROM: main()
WARNING: AIRDATE/STANDARD LOGIC FAILED. FUZZY LOGIC ABSOLUTE: . Requiring doover.
DEBUG: ENTERING: set_absolute_episode_number_by_ename_fuzzy() ; CALLED FROM: main()
agrep: 2 words match within 8 errors
DEBUG: ENTERING: increment_total_matches() ; CALLED FROM: main()
DEBUG: TOTAL FUZZY LOGIC MATCHES:3943
DEBUG: TOTAL VERIFIED FUZZY ERRORS:79
DEBUG: ENTERING: set_sxxexx_absolute_episode_number() ; CALLED FROM: main()
INFO: EPISODE:How Dare You Hurt My Bulma Vegetas Total, Furious Change EPISODE NUMBER:9 S01E07 WITH CONFIDENCE: -2
DEBUG: PlotMatchFallback is Enabled
DEBUG: ENTERING: check_filesystem() ; CALLED FROM: main()
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 1110197
       arg 3 = /media/Storage/Videos
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 131947
       arg 3 = /home/mythtv/recordedTV
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 1110197
       arg 3 = /media/Storage/Movies
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 131947
       arg 3 = /home/mythtv/recordedMovies
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 1110197
       arg 3 = /media/Storage/recordedShows
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 131947
       arg 3 = /home/mythtv/recordedShows
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 1
       arg 2 = 1110197
       arg 3 = /media/Storage/mythtv/recordings
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 5
       arg 2 = 1110197
       arg 3 = /media/Storage/myth2kodi
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 5
       arg 2 = 131947
       arg 3 = /tmp
DEBUG: filesystem_write_state=0
DEBUG: ENTERING: msg_operation_summary() ; CALLED FROM: main()
INFO: ################ OPERATION SUMMARY ################
      JOB: myth2kodi '1878_20170219010000.ts' "" "" "" '' ''
       m2kVersion=myth2kodi Version 1.2.2c-
      CALLER=mythtv-
       m2kdir=/media/Storage/myth2kodi-
       Timeout=50-
       APIkey=3B054E548E3F4FBE-
      PROCESS_RECORDING_MODE=MOVE-
      SYMLINK=Enabled-
      TargetPathIsInputPath=Disabled-
      FailSafeMode=Disabled-
       FailSafeDir=/media/Storage/FailSafe-
       Notify=Disabled-
DEBUG: ENTERING: msg_dir_summary() ; CALLED FROM: msg_operation_summary()
      A summary table of writeable directories: 0='WRITEABLE' ; 1='NOT WRITEABLE'
      USER SETTING      |FLAG |Free Space  |Folder name
      m2kdir            |  0  | 1110197 MB | /media/Storage/myth2kodi
      M2K_TMPDIR        |  0  |  131947 MB | /tmp
      originaldirname   |  0  | 1110197 MB | /media/Storage/mythtv/recordings
      MoveDir           |  0  | 1110197 MB | /media/Storage/Videos
      AlternateMoveDir  |  0  |  131947 MB | /home/mythtv/recordedTV
      PrimaryMovieDir   |  0  | 1110197 MB | /media/Storage/Movies
      AlternateMovieDir |  0  |  131947 MB | /home/mythtv/recordedMovies
      PrimaryShowDir    |  0  | 1110197 MB | /media/Storage/recordedShows
      AlternateShowDir  |  0  |  131947 MB | /home/mythtv/recordedShows
      InputPath=1878_20170219010000.ts-
      InputTitle=Dragon Ball Super-
      InputSubtitle=How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!-
      InputSeasonNum=0-
      InputEpisodeNum=0-
      showtranslation=Dragon Ball Super-
      ShowName=Dragon Ball Super-
       LastUpdatedTVDB=1487869643-
       CurrentTimeTVDB=1487948098-
      SeriesID=295068-
      NewShowName=Dragon Ball Super-
       AbsoluteEpisodeNumber=9-
      EpisodeSubtitle=How Dare You Hurt My Bulma Vegetas Total, Furious Change-
      Sxx=S01- Exx=E07-
      MoveFileSize=2106 MB
      ConfidenceRating=-3-
      ConfidenceReasoning= Attempted Match On Zap2itID: Failed; Attempted match on Standard Logic: Successful; Attempted match on OriginalAirDate: Failed; Attempted SubTitle match on Standard logic: Failed; Attempted SubTitle match on Fuzzy logic: Successful; -
       XMLTVGrabber=schedulesdirect1-
      ShowStartTime=2017-02-18 20:00:00-05:00-
       MovieAirDate=-
       OriginalAirDate=2017-02-18-
      ProgramID=EP025761330007-
      ChanID=1878-
      StorageGroup=Default-
      ShowCategory=Children-
       GoForDoover=0-
      ProgramIDType=Series With Episode Data-
       rating=0-
      Zap2itSeriesID=2576133-
       LocalSeriesID=EP02576133-
      Plot=-
      Matched Plot=Beerus effortlessly disposes of Majin Boo, while Vegeta stands by in awe. Vegeta tries to persuade Beerus to calm down and enjoy himself, but he refuses to listen. Trunks and Goten fuse into Gotenks and attack to no avail. Powerless to do anything else, Gotenks starts insulting Beerus for which he is promptly punished. Piccolo, Tenshinhan, and Android 18 try taking on Beerus with little success. Majin Boo attacks again but is unable to land a single hit. While observing the battle, Dende realizes what Beerus actually is and immediately informs Piccolo. Before Piccolo is able to warn him, Gohan powers up and charges towards Beerus. Using Majin Boo as a weapon, Beerus repels Gohan, taking them both out. Being the last one standing, Vegeta confronts Beerus, but he is swiftly brought to the ground. Beerus tells Vegeta that he is disappointed with him that he is just as weak as his father was. Just as Beerus is about to finish Vegeta, Bulma walks up and slaps him for ruining her party. Beerus retaliates in similar fashion. Seeing Bulma struck infuriates Vegeta he explodes and powers up immensely. -
INFO: ################ END OF OPERATION SUMMARY ################
DEBUG: ENTERING: set_move_location() ; CALLED FROM: main()
DEBUG: Nothing to do here as Move dir is writeable, but cannot have an empty then and too tired to figure out how to rearrange the if block
DEBUG: ENTERING: set_show_file_name() ; CALLED FROM: main()
DEBUG: Naming as episode
INFO: Set file name as: Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change)
DEBUG: ENTERING: make_show_dir() ; CALLED FROM: main()
       NewShowName: Dragon Ball Super
       MoveDir: /media/Storage/Videos
       SeasonNumber: 1
       Notify: Disabled
       NotifyUserName: mythtv
       FailSafeDir: /media/Storage/FailSafe
INFO: CREATING SERIES FOLDER: /media/Storage/Videos/Dragon Ball Super
INFO: CREATING SEASON FOLDER: /media/Storage/Videos/Dragon Ball Super/Season 1
INFO: MOVE DIRECTORY SET AS: /media/Storage/Videos/Dragon Ball Super/Season 1
DEBUG: ENTERING: check_path_permission() ; CALLED FROM: main()
       PATH_TO_CHECK = 1878_20170219010000.ts
       REQUIRED_PERMISSION = rw
DEBUG: Checking 'rw' permissions for: 1878_20170219010000.ts
DEBUG: Good start: mythtv owns it.
DEBUG: Permissions ok for: 1878_20170219010000.ts
DEBUG: MOVING FILE: '1878_20170219010000.ts' to '/media/Storage/Videos/Dragon Ball Super/Season 1/Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change).ts'
INFO: Creating symlink in move mode.
DEBUG: ENTERING: success_postprocessing() ; CALLED FROM: main()
DEBUG: ENTERING: kodi_newshow() ; CALLED FROM: success_postprocessing()
       m2kScanMode:
       KODINotify: Enabled
       KODIUpdate: Enabled
       KODIIPs: 192.168.1.147:8080 ;.
       ShowName: Dragon Ball Super
INFO: Sending GUI.ShowNotification request to: 192.168.1.147:8080
DEBUG: SENT: GUI.ShowNotification for Dragon Ball Super
INFO: Sending VideoLibrary.Scan request to: 192.168.1.147:8080
DEBUG: SENT: VideoLibrary.Scan request.
DEBUG: ENTERING: add_undo() ; CALLED FROM: success_postprocessing()
       m2kdir: /media/Storage/myth2kodi
       InputPath: 1878_20170219010000.ts
       MoveDir: /media/Storage/Videos/Dragon Ball Super/Season 1
       ShowFileName: Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change)
       OriginalExt: ts
       PROCESS_RECORDING_MODE: MOVE
       SYMLINK: Enabled
DEBUG: ENTERING: add_doover() ; CALLED FROM: success_postprocessing()
       m2karg1: 1878_20170219010000.ts
       m2karg2:
       m2karg3:
       m2karg4:
       m2karg5:
       m2karg6:
       m2kdir: /media/Storage/myth2kodi
       InputPath: 1878_20170219010000.ts
       MoveDir: /media/Storage/Videos/Dragon Ball Super/Season 1
       ShowFileName: Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change)
       OriginalExt: ts
       RequiresDoover: 1
       PROCESS_RECORDING_MODE: MOVE
       SYMLINK: Enabled
INFO: Writing job to doover queue: /media/Storage/myth2kodi/doover.sh
DEBUG: ENTERING: dailyreport() ; CALLED FROM: success_postprocessing()
INFO: Writing to DailyReport file: 2017-02-24
DEBUG: ENTERING: generaterss() ; CALLED FROM: success_postprocessing()
ERROR: generaterss(): RSS generation failed: Directory not writeable (/var/www/myth2kodi-rss)
DEBUG: ENTERING: msg_completed_move() ; CALLED FROM: main()
INFO: Move completed.
      Moved: 1878_20170219010000.ts
      To: /media/Storage/Videos/Dragon Ball Super/Season 1/Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change).ts
      Added symbolic link from: 1878_20170219010000.ts
      To: /media/Storage/Videos/Dragon Ball Super/Season 1/Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change).ts
DEBUG: ENTERING: exit_job() ; CALLED FROM: main()
       Called with 1 arguments
       arg 1 = MoveModeSuccessful
INFO: SUCCESSFUL COMPLETION TYPE: MoveModeSuccessful
DEBUG: Either: Notify=Disabled; scan mode; recording is in an ignore list; or NOTIFY_MSG was not set.
$

ETA: I just ran a scan on all my recording and myth2kodi found a bunch it must have missed before so I guess this fix helped out a lot!
Reply
#38
(2017-02-24, 17:10)jctennis Wrote: I went ahead and pulled the latest from github to test and it looks like you nailed it. Here is the output:
Code:
$ myth2kodi 1878_20170219010000.ts
DEBUG: ENTERING: log_rotation() ; CALLED FROM: m2k_init()
DEBUG: ENTERING: validate_settings() ; CALLED FROM: m2k_init()
DEBUG: myth2kodi script initialisation complete.
DEBUG: Running myth2kodi as mythtv
DEBUG: ENTERING: validate_args() ; CALLED FROM: main()
DEBUG: Called with 1 arguments. Called as:
       myth2kodi '1878_20170219010000.ts' "" "" "" '' ''
DEBUG: ENTERING: pre_process_check() ; CALLED FROM: validate_args()
       arg1: 1878_20170219010000.ts
DEBUG: Looks ok, FILE is named like a MythTV recording: 1878_20170219010000.ts
/usr/local/bin/myth2kodi: line 950: realpath: command not found
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
DEBUG: Arguments seem valid.
DEBUG: No command flag set. Processing as recording.
INFO: Processing: 1878_20170219010000.ts
DEBUG: ENTERING: process_mythtvdb() ; CALLED FROM: main()
DEBUG: ENTERING: get_mythtvdb_info() ; CALLED FROM: process_mythtvdb()
DEBUG: ENTERING: get_mythtvdb_info_pythonbindings() ; CALLED FROM: get_mythtvdb_info()
       m2kdir: /media/Storage/myth2kodi
       binpath: /usr/local/bin
       InputFileBasename: 1878_20170219010000.ts
       DBPin: 0000
       DBHostName: 192.168.1.78
       MySQLMythDb: mythconverg
       MySQLuser: mythtv
       MySQLpass: mythtv
       InputTitle:
       InputSubtitle:
       InputSeasonNum:
       InputEpisodeNum:
INFO: Accessing MythTV DataBase Using PythonBindings:
INFO: Attempting to pull database information on 1878_20170219010000.ts
DEBUG: Storing MythTV-DB info in temporary file: '/tmp/m2k_recinfo_2017-02-24T100355-mI5y'
mythdb_access: DEBUG:__main__:Establishing database connection
mythdb_access: DEBUG:__main__:Attempting to write data to file: /tmp/m2k_recinfo_2017-02-24T100355-mI5y
mythdb_access: DEBUG:__main__:Calling write_data()
mythdb_access: DEBUG:__main__:Operation complete.
mythdb_access: DEBUG:__main__:Closing out the file/stdout
DEBUG: Guide data as extracted by: get_mythtvdb_info_pythonbindings()
       chanid=1878
       starttime=2017-02-18 20:00:00-05:00
       endtime=2017-02-18 20:30:01-05:00
       title=Dragon Ball Super
       subtitle=How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!
       description=
       season=0
       episode=0
       category=Children
       hostname=tvserver-OptiPlex-760
       bookmark=0
       editing=0
       cutlist=0
       autoexpire=0
       commflagged=1
       recgroup=Default
       recordid=34
       seriesid=EP02576133
       programid=EP025761330007
       inetref=ttvdb.py_295068
       lastmodified=2017-02-21 02:42:03-05:00
       filesize=2208349520
       stars=0.0
       previouslyshown=0
       originalairdate=2017-02-18
       preserve=0
       findid=0
       deletepending=0
       transcoder=0
       timestretch=1.0
       recpriority=2
       basename=1878_20170219010000.ts
       progstart=2017-02-18 20:00:00-05:00
       progend=2017-02-18 20:30:00-05:00
       playgroup=Default
       profile=Default
       duplicate=1
       transcoded=0
       watched=1
       storagegroup=Default
       bookmarkupdate=2017-02-21 02:42:03-05:00
       recgroupid=1
       recordedid=1614
       inputname=5: MPEG2TS
       startdata[0]=0
       startdata[1]=22424
       startdata[2]=47035
       stopdata[0]=587
       stopdata[1]=30225
       stopdata[2]=54063
       xmltvgrabber=schedulesdirect1
DEBUG: Created a temporary comskip markupstart file: '/tmp/m2k_markupstart_2017-02-24T100355-V3Gx'
DEBUG: Created a temporary comskip markupstop file: '/tmp/m2k_markupstop_2017-02-24T100355-g5wx'
DEBUG: ENTERING: generate_comskip() ; CALLED FROM: get_mythtvdb_info_pythonbindings()
DEBUG: Created a temporary comskip markupframes file: '/tmp/m2k_markupframes_2017-02-24T100355-FHgZ'
DEBUG: COMMERCIAL DATA START:0 STOP:587
DEBUG: COMMERCIAL DATA START:22424 STOP:30225
DEBUG: COMMERCIAL DATA START:47035 STOP:54063
DEBUG: Not removing the temporary markup files: '/tmp/m2k_markupstart_2017-02-24T100355-V3Gx'; '/tmp/m2k_markupstop_2017-02-24T100355-g5wx'.
DEBUG: Setting the following variables based on MythTV-DB guide data:
       InputTitle=Dragon Ball Super
       InputSubtitle=How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!
       InputSeasonNum=0
       InputEpisodeNum=0
       ShowCategory=Children
       MovieAirDate=
       OriginalAirDate=2017-02-18
       StorageGroup=Default
       Stars=0.0
       Plot=
       LocalSeriesID=EP02576133
       ProgramID=EP025761330007
       ChanID=1878
       ShowStartTime=2017-02-18 20:00:00-05:00
       XMLTVGrabber=schedulesdirect1
DEBUG: Not removing the temporary MythTV-DB info file: '/tmp/m2k_recinfo_2017-02-24T100355-mI5y'
DEBUG: ENTERING: process_mythtvdb_schedulesdirect() ; CALLED FROM: process_mythtvdb()
INFO: Processing MythTV database info as SchedulesDirect.
DEBUG: Input and MythTV-DB guide data for 1878_20170219010000.ts
       RECSTART:2017-02-18 20:00:00-05:00
       DATE: 2017-02-18
       PROGRAMID:EP025761330007
       ShowCategory:Children
       InputTitle:Dragon Ball Super
       InputSubtitle:How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!
       Sxx: UNKNOWN
       Exx: UNKNOWN
       PLOT:
DEBUG: ENTERING: show_translation() ; CALLED FROM: main()
INFO: USER TRANSLATION: Dragon Ball Super = Dragon Ball Super
DEBUG: ENTERING: process_ignore_lists() ; CALLED FROM: main()
DEBUG: ENTERING: periodic_maintenace() ; CALLED FROM: main()
DEBUG: ENTERING: download_series_identification() ; CALLED FROM: main()
INFO: SEARCHING www.TheTVDB.com FOR Dragon%20Ball%20Super
DEBUG: Created a temporary zap2it file: '/tmp/m2k_zap2it_2017-02-24T100355-b1bk'
DEBUG: Not removing the temporary working file: '/tmp/m2k_working_2017-02-24T100355-ShGe'
DEBUG: ENTERING: get_serieslinenumber_zap2itid() ; CALLED FROM: main()
DEBUG: TESTING FOR ZAP2ITID MATCH: Dragon Ball Super
WARNING: get_serieslinenumber_zap2itid(): couldn't find serieslinenumber with Zap2itSeriesID
DEBUG: ENTERING: get_serieslinenumber_showname() ; CALLED FROM: main()
DEBUG: ENTERING: set_seriesid_newshowname_from_serieslinenumber() ; CALLED FROM: main()
INFO: FOUND:Dragon Ball Super ID#:295068 WITH CONFIDENCE:-1
DEBUG: ENTERING: make_m2k_database_dir() ; CALLED FROM: main()
DEBUG: ENTERING: check_m2k_database_up_to_date() ; CALLED FROM: main()
INFO: DATABASE MAINTAINED. Current: 1487948098. Next update: 1488134563.
INFO: Processing SeriesID:295068
DEBUG: ENTERING: set_absolute_episode_number_by_airdate() ; CALLED FROM: main()
WARNING: AIRDATE FAILED. TITLE MATCH ON ABSOLUTE EPISODE NUMBER:
DEBUG: ENTERING: set_absolute_episode_number_by_ename() ; CALLED FROM: main()
WARNING: AIRDATE/STANDARD LOGIC FAILED. FUZZY LOGIC ABSOLUTE: . Requiring doover.
DEBUG: ENTERING: set_absolute_episode_number_by_ename_fuzzy() ; CALLED FROM: main()
agrep: 2 words match within 8 errors
DEBUG: ENTERING: increment_total_matches() ; CALLED FROM: main()
DEBUG: TOTAL FUZZY LOGIC MATCHES:3943
DEBUG: TOTAL VERIFIED FUZZY ERRORS:79
DEBUG: ENTERING: set_sxxexx_absolute_episode_number() ; CALLED FROM: main()
INFO: EPISODE:How Dare You Hurt My Bulma Vegetas Total, Furious Change EPISODE NUMBER:9 S01E07 WITH CONFIDENCE: -2
DEBUG: PlotMatchFallback is Enabled
DEBUG: ENTERING: check_filesystem() ; CALLED FROM: main()
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 1110197
       arg 3 = /media/Storage/Videos
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 131947
       arg 3 = /home/mythtv/recordedTV
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 1110197
       arg 3 = /media/Storage/Movies
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 131947
       arg 3 = /home/mythtv/recordedMovies
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 1110197
       arg 3 = /media/Storage/recordedShows
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 131947
       arg 3 = /home/mythtv/recordedShows
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 1
       arg 2 = 1110197
       arg 3 = /media/Storage/mythtv/recordings
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 5
       arg 2 = 1110197
       arg 3 = /media/Storage/myth2kodi
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 5
       arg 2 = 131947
       arg 3 = /tmp
DEBUG: filesystem_write_state=0
DEBUG: ENTERING: msg_operation_summary() ; CALLED FROM: main()
INFO: ################ OPERATION SUMMARY ################
      JOB: myth2kodi '1878_20170219010000.ts' "" "" "" '' ''
       m2kVersion=myth2kodi Version 1.2.2c-
      CALLER=mythtv-
       m2kdir=/media/Storage/myth2kodi-
       Timeout=50-
       APIkey=3B054E548E3F4FBE-
      PROCESS_RECORDING_MODE=MOVE-
      SYMLINK=Enabled-
      TargetPathIsInputPath=Disabled-
      FailSafeMode=Disabled-
       FailSafeDir=/media/Storage/FailSafe-
       Notify=Disabled-
DEBUG: ENTERING: msg_dir_summary() ; CALLED FROM: msg_operation_summary()
      A summary table of writeable directories: 0='WRITEABLE' ; 1='NOT WRITEABLE'
      USER SETTING      |FLAG |Free Space  |Folder name
      m2kdir            |  0  | 1110197 MB | /media/Storage/myth2kodi
      M2K_TMPDIR        |  0  |  131947 MB | /tmp
      originaldirname   |  0  | 1110197 MB | /media/Storage/mythtv/recordings
      MoveDir           |  0  | 1110197 MB | /media/Storage/Videos
      AlternateMoveDir  |  0  |  131947 MB | /home/mythtv/recordedTV
      PrimaryMovieDir   |  0  | 1110197 MB | /media/Storage/Movies
      AlternateMovieDir |  0  |  131947 MB | /home/mythtv/recordedMovies
      PrimaryShowDir    |  0  | 1110197 MB | /media/Storage/recordedShows
      AlternateShowDir  |  0  |  131947 MB | /home/mythtv/recordedShows
      InputPath=1878_20170219010000.ts-
      InputTitle=Dragon Ball Super-
      InputSubtitle=How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!-
      InputSeasonNum=0-
      InputEpisodeNum=0-
      showtranslation=Dragon Ball Super-
      ShowName=Dragon Ball Super-
       LastUpdatedTVDB=1487869643-
       CurrentTimeTVDB=1487948098-
      SeriesID=295068-
      NewShowName=Dragon Ball Super-
       AbsoluteEpisodeNumber=9-
      EpisodeSubtitle=How Dare You Hurt My Bulma Vegetas Total, Furious Change-
      Sxx=S01- Exx=E07-
      MoveFileSize=2106 MB
      ConfidenceRating=-3-
      ConfidenceReasoning= Attempted Match On Zap2itID: Failed; Attempted match on Standard Logic: Successful; Attempted match on OriginalAirDate: Failed; Attempted SubTitle match on Standard logic: Failed; Attempted SubTitle match on Fuzzy logic: Successful; -
       XMLTVGrabber=schedulesdirect1-
      ShowStartTime=2017-02-18 20:00:00-05:00-
       MovieAirDate=-
       OriginalAirDate=2017-02-18-
      ProgramID=EP025761330007-
      ChanID=1878-
      StorageGroup=Default-
      ShowCategory=Children-
       GoForDoover=0-
      ProgramIDType=Series With Episode Data-
       rating=0-
      Zap2itSeriesID=2576133-
       LocalSeriesID=EP02576133-
      Plot=-
      Matched Plot=Beerus effortlessly disposes of Majin Boo, while Vegeta stands by in awe. Vegeta tries to persuade Beerus to calm down and enjoy himself, but he refuses to listen. Trunks and Goten fuse into Gotenks and attack to no avail. Powerless to do anything else, Gotenks starts insulting Beerus for which he is promptly punished. Piccolo, Tenshinhan, and Android 18 try taking on Beerus with little success. Majin Boo attacks again but is unable to land a single hit. While observing the battle, Dende realizes what Beerus actually is and immediately informs Piccolo. Before Piccolo is able to warn him, Gohan powers up and charges towards Beerus. Using Majin Boo as a weapon, Beerus repels Gohan, taking them both out. Being the last one standing, Vegeta confronts Beerus, but he is swiftly brought to the ground. Beerus tells Vegeta that he is disappointed with him that he is just as weak as his father was. Just as Beerus is about to finish Vegeta, Bulma walks up and slaps him for ruining her party. Beerus retaliates in similar fashion. Seeing Bulma struck infuriates Vegeta he explodes and powers up immensely. -
INFO: ################ END OF OPERATION SUMMARY ################
DEBUG: ENTERING: set_move_location() ; CALLED FROM: main()
DEBUG: Nothing to do here as Move dir is writeable, but cannot have an empty then and too tired to figure out how to rearrange the if block
DEBUG: ENTERING: set_show_file_name() ; CALLED FROM: main()
DEBUG: Naming as episode
INFO: Set file name as: Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change)
DEBUG: ENTERING: make_show_dir() ; CALLED FROM: main()
       NewShowName: Dragon Ball Super
       MoveDir: /media/Storage/Videos
       SeasonNumber: 1
       Notify: Disabled
       NotifyUserName: mythtv
       FailSafeDir: /media/Storage/FailSafe
INFO: CREATING SERIES FOLDER: /media/Storage/Videos/Dragon Ball Super
INFO: CREATING SEASON FOLDER: /media/Storage/Videos/Dragon Ball Super/Season 1
INFO: MOVE DIRECTORY SET AS: /media/Storage/Videos/Dragon Ball Super/Season 1
DEBUG: ENTERING: check_path_permission() ; CALLED FROM: main()
       PATH_TO_CHECK = 1878_20170219010000.ts
       REQUIRED_PERMISSION = rw
DEBUG: Checking 'rw' permissions for: 1878_20170219010000.ts
DEBUG: Good start: mythtv owns it.
DEBUG: Permissions ok for: 1878_20170219010000.ts
DEBUG: MOVING FILE: '1878_20170219010000.ts' to '/media/Storage/Videos/Dragon Ball Super/Season 1/Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change).ts'
INFO: Creating symlink in move mode.
DEBUG: ENTERING: success_postprocessing() ; CALLED FROM: main()
DEBUG: ENTERING: kodi_newshow() ; CALLED FROM: success_postprocessing()
       m2kScanMode:
       KODINotify: Enabled
       KODIUpdate: Enabled
       KODIIPs: 192.168.1.147:8080 ;.
       ShowName: Dragon Ball Super
INFO: Sending GUI.ShowNotification request to: 192.168.1.147:8080
DEBUG: SENT: GUI.ShowNotification for Dragon Ball Super
INFO: Sending VideoLibrary.Scan request to: 192.168.1.147:8080
DEBUG: SENT: VideoLibrary.Scan request.
DEBUG: ENTERING: add_undo() ; CALLED FROM: success_postprocessing()
       m2kdir: /media/Storage/myth2kodi
       InputPath: 1878_20170219010000.ts
       MoveDir: /media/Storage/Videos/Dragon Ball Super/Season 1
       ShowFileName: Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change)
       OriginalExt: ts
       PROCESS_RECORDING_MODE: MOVE
       SYMLINK: Enabled
DEBUG: ENTERING: add_doover() ; CALLED FROM: success_postprocessing()
       m2karg1: 1878_20170219010000.ts
       m2karg2:
       m2karg3:
       m2karg4:
       m2karg5:
       m2karg6:
       m2kdir: /media/Storage/myth2kodi
       InputPath: 1878_20170219010000.ts
       MoveDir: /media/Storage/Videos/Dragon Ball Super/Season 1
       ShowFileName: Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change)
       OriginalExt: ts
       RequiresDoover: 1
       PROCESS_RECORDING_MODE: MOVE
       SYMLINK: Enabled
INFO: Writing job to doover queue: /media/Storage/myth2kodi/doover.sh
DEBUG: ENTERING: dailyreport() ; CALLED FROM: success_postprocessing()
INFO: Writing to DailyReport file: 2017-02-24
DEBUG: ENTERING: generaterss() ; CALLED FROM: success_postprocessing()
ERROR: generaterss(): RSS generation failed: Directory not writeable (/var/www/myth2kodi-rss)
DEBUG: ENTERING: msg_completed_move() ; CALLED FROM: main()
INFO: Move completed.
      Moved: 1878_20170219010000.ts
      To: /media/Storage/Videos/Dragon Ball Super/Season 1/Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change).ts
      Added symbolic link from: 1878_20170219010000.ts
      To: /media/Storage/Videos/Dragon Ball Super/Season 1/Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change).ts
DEBUG: ENTERING: exit_job() ; CALLED FROM: main()
       Called with 1 arguments
       arg 1 = MoveModeSuccessful
INFO: SUCCESSFUL COMPLETION TYPE: MoveModeSuccessful
DEBUG: Either: Notify=Disabled; scan mode; recording is in an ignore list; or NOTIFY_MSG was not set.
$

ETA: I just ran a scan on all my recording and myth2kodi found a bunch it must have missed before so I guess this fix helped out a lot!

Glad it is working better for you now...

From the log you posted, I noticed that your system does not have realpath installed, it is usually part of the package coreutils. So you should install that. It is installed by default on my system, but now that I know that that is not true for all systems I will add it as a dependency and check for it in diagnostics.

Also, out of curiosity, what percentage of your recordings are being moved successfully?
One way to figure it out, if you are in the default MOVE with SYMLINKing Enabled mode, is using something of the form:
Code:
ls -lS /path/to/recordings/directory/*.ext | less
where for you I think that means:
Code:
ls -lS /media/Storage/mythtv/recordings/*.ts | less
then, in less, jump to the end and then start scrolling back up until you reach the recordings showing symlinks and read the percentage down the bottom.

And another one out of curiosity, I noticed from your logs the other day that the MythTV-DB access takes a few seconds on your system, whereas on my test machine it's less than 1 second (5 year old machine, mid-range at purchase)... Is your MythTV-DB over a network from the machine running myth2kodi? The timing for the rest of the processing seems similar to what I get.

Thanks again for all the feedback.
Reply
#39
(2017-02-25, 01:52)stuartk Wrote:
(2017-02-24, 17:10)jctennis Wrote: I went ahead and pulled the latest from github to test and it looks like you nailed it. Here is the output:
Code:
$ myth2kodi 1878_20170219010000.ts
DEBUG: ENTERING: log_rotation() ; CALLED FROM: m2k_init()
DEBUG: ENTERING: validate_settings() ; CALLED FROM: m2k_init()
DEBUG: myth2kodi script initialisation complete.
DEBUG: Running myth2kodi as mythtv
DEBUG: ENTERING: validate_args() ; CALLED FROM: main()
DEBUG: Called with 1 arguments. Called as:
       myth2kodi '1878_20170219010000.ts' "" "" "" '' ''
DEBUG: ENTERING: pre_process_check() ; CALLED FROM: validate_args()
       arg1: 1878_20170219010000.ts
DEBUG: Looks ok, FILE is named like a MythTV recording: 1878_20170219010000.ts
/usr/local/bin/myth2kodi: line 950: realpath: command not found
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
find: `': No such file or directory
DEBUG: Arguments seem valid.
DEBUG: No command flag set. Processing as recording.
INFO: Processing: 1878_20170219010000.ts
DEBUG: ENTERING: process_mythtvdb() ; CALLED FROM: main()
DEBUG: ENTERING: get_mythtvdb_info() ; CALLED FROM: process_mythtvdb()
DEBUG: ENTERING: get_mythtvdb_info_pythonbindings() ; CALLED FROM: get_mythtvdb_info()
       m2kdir: /media/Storage/myth2kodi
       binpath: /usr/local/bin
       InputFileBasename: 1878_20170219010000.ts
       DBPin: 0000
       DBHostName: 192.168.1.78
       MySQLMythDb: mythconverg
       MySQLuser: mythtv
       MySQLpass: mythtv
       InputTitle:
       InputSubtitle:
       InputSeasonNum:
       InputEpisodeNum:
INFO: Accessing MythTV DataBase Using PythonBindings:
INFO: Attempting to pull database information on 1878_20170219010000.ts
DEBUG: Storing MythTV-DB info in temporary file: '/tmp/m2k_recinfo_2017-02-24T100355-mI5y'
mythdb_access: DEBUG:__main__:Establishing database connection
mythdb_access: DEBUG:__main__:Attempting to write data to file: /tmp/m2k_recinfo_2017-02-24T100355-mI5y
mythdb_access: DEBUG:__main__:Calling write_data()
mythdb_access: DEBUG:__main__:Operation complete.
mythdb_access: DEBUG:__main__:Closing out the file/stdout
DEBUG: Guide data as extracted by: get_mythtvdb_info_pythonbindings()
       chanid=1878
       starttime=2017-02-18 20:00:00-05:00
       endtime=2017-02-18 20:30:01-05:00
       title=Dragon Ball Super
       subtitle=How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!
       description=
       season=0
       episode=0
       category=Children
       hostname=tvserver-OptiPlex-760
       bookmark=0
       editing=0
       cutlist=0
       autoexpire=0
       commflagged=1
       recgroup=Default
       recordid=34
       seriesid=EP02576133
       programid=EP025761330007
       inetref=ttvdb.py_295068
       lastmodified=2017-02-21 02:42:03-05:00
       filesize=2208349520
       stars=0.0
       previouslyshown=0
       originalairdate=2017-02-18
       preserve=0
       findid=0
       deletepending=0
       transcoder=0
       timestretch=1.0
       recpriority=2
       basename=1878_20170219010000.ts
       progstart=2017-02-18 20:00:00-05:00
       progend=2017-02-18 20:30:00-05:00
       playgroup=Default
       profile=Default
       duplicate=1
       transcoded=0
       watched=1
       storagegroup=Default
       bookmarkupdate=2017-02-21 02:42:03-05:00
       recgroupid=1
       recordedid=1614
       inputname=5: MPEG2TS
       startdata[0]=0
       startdata[1]=22424
       startdata[2]=47035
       stopdata[0]=587
       stopdata[1]=30225
       stopdata[2]=54063
       xmltvgrabber=schedulesdirect1
DEBUG: Created a temporary comskip markupstart file: '/tmp/m2k_markupstart_2017-02-24T100355-V3Gx'
DEBUG: Created a temporary comskip markupstop file: '/tmp/m2k_markupstop_2017-02-24T100355-g5wx'
DEBUG: ENTERING: generate_comskip() ; CALLED FROM: get_mythtvdb_info_pythonbindings()
DEBUG: Created a temporary comskip markupframes file: '/tmp/m2k_markupframes_2017-02-24T100355-FHgZ'
DEBUG: COMMERCIAL DATA START:0 STOP:587
DEBUG: COMMERCIAL DATA START:22424 STOP:30225
DEBUG: COMMERCIAL DATA START:47035 STOP:54063
DEBUG: Not removing the temporary markup files: '/tmp/m2k_markupstart_2017-02-24T100355-V3Gx'; '/tmp/m2k_markupstop_2017-02-24T100355-g5wx'.
DEBUG: Setting the following variables based on MythTV-DB guide data:
       InputTitle=Dragon Ball Super
       InputSubtitle=How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!
       InputSeasonNum=0
       InputEpisodeNum=0
       ShowCategory=Children
       MovieAirDate=
       OriginalAirDate=2017-02-18
       StorageGroup=Default
       Stars=0.0
       Plot=
       LocalSeriesID=EP02576133
       ProgramID=EP025761330007
       ChanID=1878
       ShowStartTime=2017-02-18 20:00:00-05:00
       XMLTVGrabber=schedulesdirect1
DEBUG: Not removing the temporary MythTV-DB info file: '/tmp/m2k_recinfo_2017-02-24T100355-mI5y'
DEBUG: ENTERING: process_mythtvdb_schedulesdirect() ; CALLED FROM: process_mythtvdb()
INFO: Processing MythTV database info as SchedulesDirect.
DEBUG: Input and MythTV-DB guide data for 1878_20170219010000.ts
       RECSTART:2017-02-18 20:00:00-05:00
       DATE: 2017-02-18
       PROGRAMID:EP025761330007
       ShowCategory:Children
       InputTitle:Dragon Ball Super
       InputSubtitle:How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!
       Sxx: UNKNOWN
       Exx: UNKNOWN
       PLOT:
DEBUG: ENTERING: show_translation() ; CALLED FROM: main()
INFO: USER TRANSLATION: Dragon Ball Super = Dragon Ball Super
DEBUG: ENTERING: process_ignore_lists() ; CALLED FROM: main()
DEBUG: ENTERING: periodic_maintenace() ; CALLED FROM: main()
DEBUG: ENTERING: download_series_identification() ; CALLED FROM: main()
INFO: SEARCHING www.TheTVDB.com FOR Dragon%20Ball%20Super
DEBUG: Created a temporary zap2it file: '/tmp/m2k_zap2it_2017-02-24T100355-b1bk'
DEBUG: Not removing the temporary working file: '/tmp/m2k_working_2017-02-24T100355-ShGe'
DEBUG: ENTERING: get_serieslinenumber_zap2itid() ; CALLED FROM: main()
DEBUG: TESTING FOR ZAP2ITID MATCH: Dragon Ball Super
WARNING: get_serieslinenumber_zap2itid(): couldn't find serieslinenumber with Zap2itSeriesID
DEBUG: ENTERING: get_serieslinenumber_showname() ; CALLED FROM: main()
DEBUG: ENTERING: set_seriesid_newshowname_from_serieslinenumber() ; CALLED FROM: main()
INFO: FOUND:Dragon Ball Super ID#:295068 WITH CONFIDENCE:-1
DEBUG: ENTERING: make_m2k_database_dir() ; CALLED FROM: main()
DEBUG: ENTERING: check_m2k_database_up_to_date() ; CALLED FROM: main()
INFO: DATABASE MAINTAINED. Current: 1487948098. Next update: 1488134563.
INFO: Processing SeriesID:295068
DEBUG: ENTERING: set_absolute_episode_number_by_airdate() ; CALLED FROM: main()
WARNING: AIRDATE FAILED. TITLE MATCH ON ABSOLUTE EPISODE NUMBER:
DEBUG: ENTERING: set_absolute_episode_number_by_ename() ; CALLED FROM: main()
WARNING: AIRDATE/STANDARD LOGIC FAILED. FUZZY LOGIC ABSOLUTE: . Requiring doover.
DEBUG: ENTERING: set_absolute_episode_number_by_ename_fuzzy() ; CALLED FROM: main()
agrep: 2 words match within 8 errors
DEBUG: ENTERING: increment_total_matches() ; CALLED FROM: main()
DEBUG: TOTAL FUZZY LOGIC MATCHES:3943
DEBUG: TOTAL VERIFIED FUZZY ERRORS:79
DEBUG: ENTERING: set_sxxexx_absolute_episode_number() ; CALLED FROM: main()
INFO: EPISODE:How Dare You Hurt My Bulma Vegetas Total, Furious Change EPISODE NUMBER:9 S01E07 WITH CONFIDENCE: -2
DEBUG: PlotMatchFallback is Enabled
DEBUG: ENTERING: check_filesystem() ; CALLED FROM: main()
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 1110197
       arg 3 = /media/Storage/Videos
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 131947
       arg 3 = /home/mythtv/recordedTV
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 1110197
       arg 3 = /media/Storage/Movies
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 131947
       arg 3 = /home/mythtv/recordedMovies
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 1110197
       arg 3 = /media/Storage/recordedShows
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 2106
       arg 2 = 131947
       arg 3 = /home/mythtv/recordedShows
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 1
       arg 2 = 1110197
       arg 3 = /media/Storage/mythtv/recordings
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 5
       arg 2 = 1110197
       arg 3 = /media/Storage/myth2kodi
DEBUG: ENTERING: check_write() ; CALLED FROM: check_filesystem()
       Called with 3 arguments
       arg 1 = 5
       arg 2 = 131947
       arg 3 = /tmp
DEBUG: filesystem_write_state=0
DEBUG: ENTERING: msg_operation_summary() ; CALLED FROM: main()
INFO: ################ OPERATION SUMMARY ################
      JOB: myth2kodi '1878_20170219010000.ts' "" "" "" '' ''
       m2kVersion=myth2kodi Version 1.2.2c-
      CALLER=mythtv-
       m2kdir=/media/Storage/myth2kodi-
       Timeout=50-
       APIkey=3B054E548E3F4FBE-
      PROCESS_RECORDING_MODE=MOVE-
      SYMLINK=Enabled-
      TargetPathIsInputPath=Disabled-
      FailSafeMode=Disabled-
       FailSafeDir=/media/Storage/FailSafe-
       Notify=Disabled-
DEBUG: ENTERING: msg_dir_summary() ; CALLED FROM: msg_operation_summary()
      A summary table of writeable directories: 0='WRITEABLE' ; 1='NOT WRITEABLE'
      USER SETTING      |FLAG |Free Space  |Folder name
      m2kdir            |  0  | 1110197 MB | /media/Storage/myth2kodi
      M2K_TMPDIR        |  0  |  131947 MB | /tmp
      originaldirname   |  0  | 1110197 MB | /media/Storage/mythtv/recordings
      MoveDir           |  0  | 1110197 MB | /media/Storage/Videos
      AlternateMoveDir  |  0  |  131947 MB | /home/mythtv/recordedTV
      PrimaryMovieDir   |  0  | 1110197 MB | /media/Storage/Movies
      AlternateMovieDir |  0  |  131947 MB | /home/mythtv/recordedMovies
      PrimaryShowDir    |  0  | 1110197 MB | /media/Storage/recordedShows
      AlternateShowDir  |  0  |  131947 MB | /home/mythtv/recordedShows
      InputPath=1878_20170219010000.ts-
      InputTitle=Dragon Ball Super-
      InputSubtitle=How Dare You Do That to My Bulma! Vegeta's Metamorphosis of Fury!-
      InputSeasonNum=0-
      InputEpisodeNum=0-
      showtranslation=Dragon Ball Super-
      ShowName=Dragon Ball Super-
       LastUpdatedTVDB=1487869643-
       CurrentTimeTVDB=1487948098-
      SeriesID=295068-
      NewShowName=Dragon Ball Super-
       AbsoluteEpisodeNumber=9-
      EpisodeSubtitle=How Dare You Hurt My Bulma Vegetas Total, Furious Change-
      Sxx=S01- Exx=E07-
      MoveFileSize=2106 MB
      ConfidenceRating=-3-
      ConfidenceReasoning= Attempted Match On Zap2itID: Failed; Attempted match on Standard Logic: Successful; Attempted match on OriginalAirDate: Failed; Attempted SubTitle match on Standard logic: Failed; Attempted SubTitle match on Fuzzy logic: Successful; -
       XMLTVGrabber=schedulesdirect1-
      ShowStartTime=2017-02-18 20:00:00-05:00-
       MovieAirDate=-
       OriginalAirDate=2017-02-18-
      ProgramID=EP025761330007-
      ChanID=1878-
      StorageGroup=Default-
      ShowCategory=Children-
       GoForDoover=0-
      ProgramIDType=Series With Episode Data-
       rating=0-
      Zap2itSeriesID=2576133-
       LocalSeriesID=EP02576133-
      Plot=-
      Matched Plot=Beerus effortlessly disposes of Majin Boo, while Vegeta stands by in awe. Vegeta tries to persuade Beerus to calm down and enjoy himself, but he refuses to listen. Trunks and Goten fuse into Gotenks and attack to no avail. Powerless to do anything else, Gotenks starts insulting Beerus for which he is promptly punished. Piccolo, Tenshinhan, and Android 18 try taking on Beerus with little success. Majin Boo attacks again but is unable to land a single hit. While observing the battle, Dende realizes what Beerus actually is and immediately informs Piccolo. Before Piccolo is able to warn him, Gohan powers up and charges towards Beerus. Using Majin Boo as a weapon, Beerus repels Gohan, taking them both out. Being the last one standing, Vegeta confronts Beerus, but he is swiftly brought to the ground. Beerus tells Vegeta that he is disappointed with him that he is just as weak as his father was. Just as Beerus is about to finish Vegeta, Bulma walks up and slaps him for ruining her party. Beerus retaliates in similar fashion. Seeing Bulma struck infuriates Vegeta he explodes and powers up immensely. -
INFO: ################ END OF OPERATION SUMMARY ################
DEBUG: ENTERING: set_move_location() ; CALLED FROM: main()
DEBUG: Nothing to do here as Move dir is writeable, but cannot have an empty then and too tired to figure out how to rearrange the if block
DEBUG: ENTERING: set_show_file_name() ; CALLED FROM: main()
DEBUG: Naming as episode
INFO: Set file name as: Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change)
DEBUG: ENTERING: make_show_dir() ; CALLED FROM: main()
       NewShowName: Dragon Ball Super
       MoveDir: /media/Storage/Videos
       SeasonNumber: 1
       Notify: Disabled
       NotifyUserName: mythtv
       FailSafeDir: /media/Storage/FailSafe
INFO: CREATING SERIES FOLDER: /media/Storage/Videos/Dragon Ball Super
INFO: CREATING SEASON FOLDER: /media/Storage/Videos/Dragon Ball Super/Season 1
INFO: MOVE DIRECTORY SET AS: /media/Storage/Videos/Dragon Ball Super/Season 1
DEBUG: ENTERING: check_path_permission() ; CALLED FROM: main()
       PATH_TO_CHECK = 1878_20170219010000.ts
       REQUIRED_PERMISSION = rw
DEBUG: Checking 'rw' permissions for: 1878_20170219010000.ts
DEBUG: Good start: mythtv owns it.
DEBUG: Permissions ok for: 1878_20170219010000.ts
DEBUG: MOVING FILE: '1878_20170219010000.ts' to '/media/Storage/Videos/Dragon Ball Super/Season 1/Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change).ts'
INFO: Creating symlink in move mode.
DEBUG: ENTERING: success_postprocessing() ; CALLED FROM: main()
DEBUG: ENTERING: kodi_newshow() ; CALLED FROM: success_postprocessing()
       m2kScanMode:
       KODINotify: Enabled
       KODIUpdate: Enabled
       KODIIPs: 192.168.1.147:8080 ;.
       ShowName: Dragon Ball Super
INFO: Sending GUI.ShowNotification request to: 192.168.1.147:8080
DEBUG: SENT: GUI.ShowNotification for Dragon Ball Super
INFO: Sending VideoLibrary.Scan request to: 192.168.1.147:8080
DEBUG: SENT: VideoLibrary.Scan request.
DEBUG: ENTERING: add_undo() ; CALLED FROM: success_postprocessing()
       m2kdir: /media/Storage/myth2kodi
       InputPath: 1878_20170219010000.ts
       MoveDir: /media/Storage/Videos/Dragon Ball Super/Season 1
       ShowFileName: Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change)
       OriginalExt: ts
       PROCESS_RECORDING_MODE: MOVE
       SYMLINK: Enabled
DEBUG: ENTERING: add_doover() ; CALLED FROM: success_postprocessing()
       m2karg1: 1878_20170219010000.ts
       m2karg2:
       m2karg3:
       m2karg4:
       m2karg5:
       m2karg6:
       m2kdir: /media/Storage/myth2kodi
       InputPath: 1878_20170219010000.ts
       MoveDir: /media/Storage/Videos/Dragon Ball Super/Season 1
       ShowFileName: Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change)
       OriginalExt: ts
       RequiresDoover: 1
       PROCESS_RECORDING_MODE: MOVE
       SYMLINK: Enabled
INFO: Writing job to doover queue: /media/Storage/myth2kodi/doover.sh
DEBUG: ENTERING: dailyreport() ; CALLED FROM: success_postprocessing()
INFO: Writing to DailyReport file: 2017-02-24
DEBUG: ENTERING: generaterss() ; CALLED FROM: success_postprocessing()
ERROR: generaterss(): RSS generation failed: Directory not writeable (/var/www/myth2kodi-rss)
DEBUG: ENTERING: msg_completed_move() ; CALLED FROM: main()
INFO: Move completed.
      Moved: 1878_20170219010000.ts
      To: /media/Storage/Videos/Dragon Ball Super/Season 1/Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change).ts
      Added symbolic link from: 1878_20170219010000.ts
      To: /media/Storage/Videos/Dragon Ball Super/Season 1/Dragon Ball Super S01E07 (How Dare You Hurt My Bulma Vegetas Total, Furious Change).ts
DEBUG: ENTERING: exit_job() ; CALLED FROM: main()
       Called with 1 arguments
       arg 1 = MoveModeSuccessful
INFO: SUCCESSFUL COMPLETION TYPE: MoveModeSuccessful
DEBUG: Either: Notify=Disabled; scan mode; recording is in an ignore list; or NOTIFY_MSG was not set.
$

ETA: I just ran a scan on all my recording and myth2kodi found a bunch it must have missed before so I guess this fix helped out a lot!

Glad it is working better for you now...

From the log you posted, I noticed that your system does not have realpath installed, it is usually part of the package coreutils. So you should install that. It is installed by default on my system, but now that I know that that is not true for all systems I will add it as a dependency and check for it in diagnostics.

Also, out of curiosity, what percentage of your recordings are being moved successfully?
One way to figure it out, if you are in the default MOVE with SYMLINKing Enabled mode, is using something of the form:
Code:
ls -lS /path/to/recordings/directory/*.ext | less
where for you I think that means:
Code:
ls -lS /media/Storage/mythtv/recordings/*.ts | less
then, in less, jump to the end and then start scrolling back up until you reach the recordings showing symlinks and read the percentage down the bottom.

And another one out of curiosity, I noticed from your logs the other day that the MythTV-DB access takes a few seconds on your system, whereas on my test machine it's less than 1 second (5 year old machine, mid-range at purchase)... Is your MythTV-DB over a network from the machine running myth2kodi? The timing for the rest of the processing seems similar to what I get.

Thanks again for all the feedback.
It appears realpath is a standalone package on a ubuntu based system. I had coreutils installed already but realpath was not. A quick "sudo apt-get install realpath" fixed that problem. The system I am using has the backend, database, and myth2kodi all running on it. The specs are Intel® Core™2 Duo CPU E8400 @ 3.00GHz at 5Gb RAM. As for your other instructions, I am not seeing anything resembling a percentage.
This is the output from less if that is helpful at all http://pastebin.com/Wy0mRDRS

I have to say, I have been running linux almost exclusively for years but you really know your way around it more than I could ever hope to. I just hope I am being helpful and not a source of frustration.
Reply
#40
(2017-02-25, 06:44)jctennis Wrote: It appears realpath is a standalone package on a ubuntu based system. I had coreutils installed already but realpath was not. A quick "sudo apt-get install realpath" fixed that problem. The system I am using has the backend, database, and myth2kodi all running on it. The specs are Intel® Core™2 Duo CPU E8400 @ 3.00GHz at 5Gb RAM. As for your other instructions, I am not seeing anything resembling a percentage.
This is the output from less if that is helpful at all http://pastebin.com/Wy0mRDRS

I have to say, I have been running linux almost exclusively for years but you really know your way around it more than I could ever hope to. I just hope I am being helpful and not a source of frustration.

Definitely not a frustration, your feedback has been a great help.
I hope my many requests and verbose responses aren't too exhausting.

And speaking of verbose responses...

On the less, I guess that's another system difference. And yes,
posting the output of ls was useful, I downloaded the file and
opened it with less on my system. Your successful processing
rate is at just under 98%.

Do you know what is not processing? You can use --recording-info
to get an idea of what the unprocessed recordings are, for example,
running:
Code:
myth2kodi --recording-info '/media/Storage/mythtv/recordings/1809_20170205233000.ts'
will provide a summary of the data for that recording from
your MythTV-DB.

Three common and easy to fix reasons for failed processing are:
unrecognised series; duplicate recordings; and movies that are
mistakenly processed by myth2kodi as though they are episodes of
a series.

1) For unrecognised series there should be an entry in the
unrecognizedseries.log in your myth2kodi working directory.
To fix these just add a showTranslations entry.

2) For duplicate recordings there should be an entry in the
duplicates.log, again in the working directory. The identification
of duplicates by myth2kodi is not perfect, so, verify the recording
is actually a duplicate first and then if it is just delete it.
One thing to consider is that sometimes I find the duplicate
recording is of better quality than the one already processed.
In which case you could use myth2kodi to delete the successfully
processed recording and then reprocess the duplicate to move it.

3) When a movie has not processed correctly because myth2kodi tried
to process it as an episode of a series then you can just call:
Code:
myth2kodi --movie '/path/to/recording.ts'
to force it to be processed as a movie.

Finally, if you can be bothered spending any more time on it, and
your guide-data has description/plot fields you can usually just
do a web search for the whole plot to identify the episode and
then process the recording using the optional (but positional)
subtitle and/or season and episode numbers arguments. For example,
if you knew the season and episode number but not the episode-title
(some series don't really have episode-titles) and the series title
is already correct, then you can just do:
Code:
myth2kodi '/path/to/recording.ts' '' '' '1' '1'
where the two ones are replaced with the actual season and episode
numbers. The two blank fields are where the recording title and subtitle
would go, leaving them blank means the MythTV-DB values will be used,
and while you can provide everything you only actually need one of either
the subtitle or the season and episode numbers (for the numbers you
must provide both numbers). And I just realised, I use recording-subtitle
and episode-title interchangeably -- recordings have titles and subtitles,
if the recording is an episode then the recording title is the series-title
and the recording subtitle is the episode-title.

My guide-data is terrible, so I only get about 80% automatically
processed, then web-search and manually providing the extra info
to myth2kodi gets me up to about 97%.
Reply
#41
A user of myth2kodi reported that, while it runs fine from the command line, they cannot get it to run as a MythTV User Job.

Does/Did anyone else have this issue? And if so, did you identify the cause? The report is for Debian 8 (Jessie).

Alternatively, does anyone, other than me, have it running successfully as a MythTV User Job? All the feedback so far seems command line based.
Reply
#42
I am running it quite successfully as a mythtv job with no issues.

Sent from my Nexus 6
Reply
#43
Updated Release Available (v1.3.0):

New Features:
  • Add SHOW_FILE_NAME_APPEND user setting, to make it easy
    to distinguish myth2kodi processed recordings from other media.
  • Add FORCE_PROCESS user setting, to bypass the expanded
    reprocessing checks.

Bug Fixes
  • Fix notify for systems that do not let users sudo as themselves.
  • Fix set_move_location() bug: AlternateMoveDir was incorrectly
    being used as the alternate movie directory, now corrected to use
    AlternateMovieDir.
  • Fix error message quoting in testfile_exit().
  • Fix agrep calls for systems with a version of agrep that limits PATTERN length.

Other Changes
  • Add check for realpath to diagnostics.
  • Increase protection against unintentional reprocessing.
  • Reduce the number of false duplicates that make it into DuplicatesFile
  • Refactor duplicate-target handling.
  • Refactor fuzzy plot matching.
  • Clean-up move-target handling and file system checks.
  • Improve logging, particularly debugging, messages.
The links provided in the original post of this thread always point to the latest version of myth2kodi.

Thanks to jctennis and mikewiz38 for the feedback.
Reply
#44
Updated Release Available (v1.3.1):

Bug Fixes
  • Fix overly confident fuzzy chunked-plot matching.
Release 1.3.0 unintentionally made the fuzzy chunked-plot matching less conservative, leading to an increased possibility of false positive matches. This bug-fix release fixes that.

The links provided in the original post of this thread always point to the latest version of myth2kodi.
Reply
#45
The new version is working great.

I was thinking it might be a good idea to include some type of installer script in the download so everything could be done quickly instead of having to manually do every install step with each upgrade. I took a swing at it but I couldn't program my way out of a paper bag so I'll post what I got so far here so you can take a look. My biggest headache is getting sed to do what I want it to do. It is horribly rudimentary and has no error checking to speak of but it is my best attempt to help:
Code:
#!/bin/bash
# Ask the user for their m2kdir directory
echo What Directory do you use for your m2kdir?
read var1
#Replace m2kdir default with contents of variable
sed -i "s|$HOME/.myth2kodi|$var1|g" myth2kodi #This command does NOT work currently because I did something wrong. If I delete the $ before HOME it works but leaves the $ behind, runing the path provided by the variable
# Copy all scripts to proper directory
sudo cp myth2kodi /usr/local/bin/
sudo cp bashlogging /usr/local/bin/
sudo cp mythdb_access /usr/local/bin/
sudo cp m2k_notify /usr/local/bin/
#Set Permissions
sudo chmod o+rx /usr/local/bin/myth2kodi
sudo chmod o+rx /usr/local/bin/mythdb_access
sudo chmod o+rx /usr/local/bin/m2k_notify
Reply
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 8

Logout Mark Read Team Forum Stats Members Help
myth2kodi -- generate Kodi friendly file-names from MythTV recordings.2