home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Submit: Bug Reports
Linked folders not importing
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="sridharb" data-source="post: 1260190" data-attributes="member: 58216"><p>Here are my observations after debugging:</p><p></p><p>The breakpoint that you suggested seems to be hit by multiple threads which makes debugging difficult - possibly one worker thread per filesystem item (like a file). That apart, I put a breakpoint in line 191. It didn't hit that. But that could be because of some other issues - please see log below:</p><p></p><p>[2019-06-27 10:53:19,393] [66779 ] [39 ] [INFO ] - ImporterWorker: Scheduled ImportJob(#1) (Activated) (Path ='{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///H:/TestSymLink/', ImportJobType='Refresh', IncludeSubdirectories='True')</p><p>[2019-06-27 10:53:19,489] [66875 ] [37 ] [INFO ] - ImporterWorker.ImportJob(#1).DirectoryUnfoldBlock: Successfully processed 3 MediaItems; time elapsed: 00:00:00.0930814; MaxDegreeOfParallelism(InnerBlock) = 1</p><p>[2019-06-27 10:53:19,517] [66903 ] [42 ] [INFO ] - ImporterWorker.ImportJob(#1).DirectorySaveBlock: Successfully processed 3 MediaItems; time elapsed: 00:00:00.0196919; MaxDegreeOfParallelism(InnerBlock) = 1</p><p>[2019-06-27 10:53:19,646] [67032 ] [41 ] [INFO ] - ImporterWorker.ImportJob(#1).FileUnfoldBlock: Successfully processed 58 MediaItems; time elapsed: 00:00:00.0479595; MaxDegreeOfParallelism(InnerBlock) = 1</p><p>[2019-06-27 10:53:20,148] [67534 ] [39 ] [INFO ] - ImporterWorker.ImportJob(#1): Activated</p><p>[2019-06-27 11:00:09,276] [476662 ] [96 ] [ERROR] - Warn.: UPnP: Could not enter write lock. Caller: at UPnP.Infrastructure.WriteContext..ctor(ReaderWriterLockSlim rwLock, Int32 timeout)</p><p> at UPnP.Infrastructure.ReaderWriterLockExtensions.EnterWrite(ReaderWriterLockSlim _lock, Int32 maxMs)</p><p> at UPnP.Infrastructure.CP.SSDP.SSDPClientController.HandleNotifyPacket(EndpointConfiguration config, IPEndPoint remoteEndPoint, HTTPVersion httpVersion, String date, String cacheControl, String location, String server, String nts, String usn, String bi, String ci, String sp, String st, String& error)</p><p> at UPnP.Infrastructure.CP.SSDP.SSDPClientController.HandleNotifyRequest(SimpleHTTPRequest header, EndpointConfiguration config, IPEndPoint remoteEndPoint)</p><p> at UPnP.Infrastructure.CP.SSDP.SSDPClientController.HandleSSDPRequest(SimpleHTTPRequest header, EndpointConfiguration config, IPEndPoint remoteEndPoint)</p><p> at UPnP.Infrastructure.CP.SSDP.SSDPClientController.OnSSDPMulticastReceive(IAsyncResult ar)</p><p> at System.Net.LazyAsyncResult.Complete(IntPtr userToken)</p><p> at System.Net.ContextAwareResult.CompleteCallback(Object state)</p><p> at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)</p><p> at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)</p><p> at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)</p><p> at System.Net.ContextAwareResult.Complete(IntPtr userToken)</p><p> at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)</p><p> at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)</p><p> at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)</p><p></p><p>[*Lot more of this warning*]</p><p></p><p>[2019-06-27 11:07:17,537] [904923 ] [125 ] [INFO ] - ImporterWorker: 86 % completed (1 ImportJob(s), in total 50 of 58 so far identified resources processed)</p><p>[2019-06-27 11:07:21,574] [908960 ] [125 ] [INFO ] - ImporterWorker.ImportJob(#1).MediaItemLoadBlock: Successfully processed 58 MediaItems; time elapsed: 00:14:01.8698120; MaxDegreeOfParallelism(InnerBlock) = 1</p><p>[2019-06-27 11:07:22,120] [909506 ] [112 ] [INFO ] - ImporterWorker.ImportJob(#1).MetadataExtractorBlock: Successfully processed 52 MediaItems; time elapsed: 00:14:02.3007820; MaxDegreeOfParallelism(InnerBlock) = 40</p><p>[2019-06-27 11:07:22,121] [909507 ] [37 ] [INFO ] - ImporterWorker.ImportJob(#1).MediaItemSaveBlock: Successfully processed 0 MediaItems; time elapsed: 00:14:02.1925243; MaxDegreeOfParallelism(InnerBlock) = 1</p><p>[2019-06-27 11:07:22,122] [909508 ] [112 ] [INFO ] - ImporterWorker.ImportJob(#1).RelationshipExtractorBlock: Successfully processed 0 MediaItems; time elapsed: 00:14:02.0852744; MaxDegreeOfParallelism(InnerBlock) = 40</p><p>[2019-06-27 11:07:22,125] [909511 ] [37 ] [INFO ] - ImporterWorker.ImportJob(#1): Completed</p><p>[2019-06-27 11:07:22,127] [909513 ] [37 ] [INFO ] - ImporterWorker.ImportJob(#1): Disposed</p><p></p><p>Now, compare that with the log from the time that the server "automatically" imported it upon creation of the media source:</p><p></p><p>[2019-06-27 10:33:15,681] [61150709] [86 ] [INFO ] - Media item 5ce11987-4ced-443b-916d-391ed62476d3 with name TestSymLink (TestSymLink) imported (36 ms)</p><p>[2019-06-27 10:33:15,694] [61150722] [83 ] [INFO ] - Media item 549ab6d7-64fb-4f68-b17a-9fc24f9c24f1 with name 001 - Seven Samurai (001 - Seven Samurai) imported (8 ms)</p><p>[2019-06-27 10:33:15,702] [61150730] [83 ] [INFO ] - Media item f0f8e425-ebc7-4fa1-acfc-fe53d016c547 with name .actors (.actors) imported (6 ms)</p><p>[2019-06-27 10:33:15,703] [61150731] [92 ] [INFO ] - ImporterWorker.ImportJob(#1).DirectorySaveBlock: Successfully processed 3 MediaItems; time elapsed: 00:00:29.8557333; MaxDegreeOfParallelism(InnerBlock) = 1</p><p>[2019-06-27 10:33:15,736] [61150764] [114 ] [INFO ] - ImporterWorker.ImportJob(#1).FileUnfoldBlock: Successfully processed 58 MediaItems; time elapsed: 00:00:29.7813029; MaxDegreeOfParallelism(InnerBlock) = 1</p><p>[2019-06-27 10:33:15,740] [61150768] [179 ] [INFO ] - ImporterWorker.ImportJob(#1).MediaItemLoadBlock: Successfully processed 58 MediaItems; time elapsed: 00:00:29.6774798; MaxDegreeOfParallelism(InnerBlock) = 1</p><p>[2019-06-27 10:33:16,815] [61151843] [169 ] [INFO ] - PluginManager: Plugin 'GenreProvider' (id '367c772e-dfc5-4be1-b292-7fb6a2d08097') activated.</p><p>[2019-06-27 10:33:17,905] [61152933] [162 ] [INFO ] - OCVVideoThumbnailer: Successfully created thumbnail for resource 'H:\TestSymLink\001 - Seven Samurai\Seven.Samurai.1954.redacted3.avi'</p><p>[2019-06-27 10:33:17,982] [61153010] [169 ] [INFO ] - OCVVideoThumbnailer: Successfully created thumbnail for resource 'H:\TestSymLink\001 - Seven Samurai\Seven.Samurai.1954.redacted2.avi'</p><p>[2019-06-27 10:33:17,995] [61153023] [139 ] [INFO ] - ImporterWorker: 43 % completed (1 ImportJob(s), in total 25 of 58 so far identified resources processed)</p><p>[2019-06-27 10:33:17,997] [61153025] [139 ] [INFO ] - ImporterWorker: 86 % completed (1 ImportJob(s), in total 50 of 58 so far identified resources processed)</p><p>[2019-06-27 10:33:17,997] [61153025] [97 ] [INFO ] - ImporterWorker.ImportJob(#1).MetadataExtractorBlock: Successfully processed 58 MediaItems; time elapsed: 00:00:31.8174594; MaxDegreeOfParallelism(InnerBlock) = 40</p><p>[2019-06-27 10:33:21,713] [61156741] [181 ] [INFO ] - Media item 96a17a34-fd46-48e6-abcd-831c9eae9a2d with name Seven Samurai (1956) reconciled (3897 ms)</p><p>[2019-06-27 10:33:22,916] [61157944] [172 ] [INFO ] - ImporterWorker.ImportJob(#1).MediaItemSaveBlock: Successfully processed 3 MediaItems; time elapsed: 00:00:36.6281907; MaxDegreeOfParallelism(InnerBlock) = 1</p><p>[2019-06-27 10:33:22,916] [61157944] [84 ] [INFO ] - ImporterWorker.ImportJob(#1).RelationshipExtractorBlock: Successfully processed 3 MediaItems; time elapsed: 00:00:36.5203169; MaxDegreeOfParallelism(InnerBlock) = 40</p><p>[2019-06-27 10:33:22,918] [61157946] [84 ] [INFO ] - ImporterWorker.ImportJob(#1): Completed</p><p>[2019-06-27 10:33:22,920] [61157948] [84 ] [INFO ] - ImporterWorker.ImportJob(#1): Disposed</p><p></p><p>You may ask me why are there 58 media items in this folder. This is mostly how it is after tMM downloads metadata. There is an .actors folder, there are files like banner.jpg, clearart.jpg etc. Importantly, there is movie.nfo - the file I want MediaPortal to read. There are three parts to this particular version, so three .avi files in that folder.</p><p></p><p>When I see it in the Movies tile in MP2, I see only one tile with the movie poster/synopsis etc. This is good, if it realizes that the other files are continuation. If it doesn't then, how can I let MP2 know that this particular movie is in three separate files?</p><p></p><p>More importantly, two questions: why did it not hit that breakpoint? Why is it apparently failing to create the mediaitem sometimes in symbolic link folders?</p><p></p><p>Thanks,</p><p>Sridhar</p></blockquote><p></p>
[QUOTE="sridharb, post: 1260190, member: 58216"] Here are my observations after debugging: The breakpoint that you suggested seems to be hit by multiple threads which makes debugging difficult - possibly one worker thread per filesystem item (like a file). That apart, I put a breakpoint in line 191. It didn't hit that. But that could be because of some other issues - please see log below: [2019-06-27 10:53:19,393] [66779 ] [39 ] [INFO ] - ImporterWorker: Scheduled ImportJob(#1) (Activated) (Path ='{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///H:/TestSymLink/', ImportJobType='Refresh', IncludeSubdirectories='True') [2019-06-27 10:53:19,489] [66875 ] [37 ] [INFO ] - ImporterWorker.ImportJob(#1).DirectoryUnfoldBlock: Successfully processed 3 MediaItems; time elapsed: 00:00:00.0930814; MaxDegreeOfParallelism(InnerBlock) = 1 [2019-06-27 10:53:19,517] [66903 ] [42 ] [INFO ] - ImporterWorker.ImportJob(#1).DirectorySaveBlock: Successfully processed 3 MediaItems; time elapsed: 00:00:00.0196919; MaxDegreeOfParallelism(InnerBlock) = 1 [2019-06-27 10:53:19,646] [67032 ] [41 ] [INFO ] - ImporterWorker.ImportJob(#1).FileUnfoldBlock: Successfully processed 58 MediaItems; time elapsed: 00:00:00.0479595; MaxDegreeOfParallelism(InnerBlock) = 1 [2019-06-27 10:53:20,148] [67534 ] [39 ] [INFO ] - ImporterWorker.ImportJob(#1): Activated [2019-06-27 11:00:09,276] [476662 ] [96 ] [ERROR] - Warn.: UPnP: Could not enter write lock. Caller: at UPnP.Infrastructure.WriteContext..ctor(ReaderWriterLockSlim rwLock, Int32 timeout) at UPnP.Infrastructure.ReaderWriterLockExtensions.EnterWrite(ReaderWriterLockSlim _lock, Int32 maxMs) at UPnP.Infrastructure.CP.SSDP.SSDPClientController.HandleNotifyPacket(EndpointConfiguration config, IPEndPoint remoteEndPoint, HTTPVersion httpVersion, String date, String cacheControl, String location, String server, String nts, String usn, String bi, String ci, String sp, String st, String& error) at UPnP.Infrastructure.CP.SSDP.SSDPClientController.HandleNotifyRequest(SimpleHTTPRequest header, EndpointConfiguration config, IPEndPoint remoteEndPoint) at UPnP.Infrastructure.CP.SSDP.SSDPClientController.HandleSSDPRequest(SimpleHTTPRequest header, EndpointConfiguration config, IPEndPoint remoteEndPoint) at UPnP.Infrastructure.CP.SSDP.SSDPClientController.OnSSDPMulticastReceive(IAsyncResult ar) at System.Net.LazyAsyncResult.Complete(IntPtr userToken) at System.Net.ContextAwareResult.CompleteCallback(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.ContextAwareResult.Complete(IntPtr userToken) at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken) at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP) [*Lot more of this warning*] [2019-06-27 11:07:17,537] [904923 ] [125 ] [INFO ] - ImporterWorker: 86 % completed (1 ImportJob(s), in total 50 of 58 so far identified resources processed) [2019-06-27 11:07:21,574] [908960 ] [125 ] [INFO ] - ImporterWorker.ImportJob(#1).MediaItemLoadBlock: Successfully processed 58 MediaItems; time elapsed: 00:14:01.8698120; MaxDegreeOfParallelism(InnerBlock) = 1 [2019-06-27 11:07:22,120] [909506 ] [112 ] [INFO ] - ImporterWorker.ImportJob(#1).MetadataExtractorBlock: Successfully processed 52 MediaItems; time elapsed: 00:14:02.3007820; MaxDegreeOfParallelism(InnerBlock) = 40 [2019-06-27 11:07:22,121] [909507 ] [37 ] [INFO ] - ImporterWorker.ImportJob(#1).MediaItemSaveBlock: Successfully processed 0 MediaItems; time elapsed: 00:14:02.1925243; MaxDegreeOfParallelism(InnerBlock) = 1 [2019-06-27 11:07:22,122] [909508 ] [112 ] [INFO ] - ImporterWorker.ImportJob(#1).RelationshipExtractorBlock: Successfully processed 0 MediaItems; time elapsed: 00:14:02.0852744; MaxDegreeOfParallelism(InnerBlock) = 40 [2019-06-27 11:07:22,125] [909511 ] [37 ] [INFO ] - ImporterWorker.ImportJob(#1): Completed [2019-06-27 11:07:22,127] [909513 ] [37 ] [INFO ] - ImporterWorker.ImportJob(#1): Disposed Now, compare that with the log from the time that the server "automatically" imported it upon creation of the media source: [2019-06-27 10:33:15,681] [61150709] [86 ] [INFO ] - Media item 5ce11987-4ced-443b-916d-391ed62476d3 with name TestSymLink (TestSymLink) imported (36 ms) [2019-06-27 10:33:15,694] [61150722] [83 ] [INFO ] - Media item 549ab6d7-64fb-4f68-b17a-9fc24f9c24f1 with name 001 - Seven Samurai (001 - Seven Samurai) imported (8 ms) [2019-06-27 10:33:15,702] [61150730] [83 ] [INFO ] - Media item f0f8e425-ebc7-4fa1-acfc-fe53d016c547 with name .actors (.actors) imported (6 ms) [2019-06-27 10:33:15,703] [61150731] [92 ] [INFO ] - ImporterWorker.ImportJob(#1).DirectorySaveBlock: Successfully processed 3 MediaItems; time elapsed: 00:00:29.8557333; MaxDegreeOfParallelism(InnerBlock) = 1 [2019-06-27 10:33:15,736] [61150764] [114 ] [INFO ] - ImporterWorker.ImportJob(#1).FileUnfoldBlock: Successfully processed 58 MediaItems; time elapsed: 00:00:29.7813029; MaxDegreeOfParallelism(InnerBlock) = 1 [2019-06-27 10:33:15,740] [61150768] [179 ] [INFO ] - ImporterWorker.ImportJob(#1).MediaItemLoadBlock: Successfully processed 58 MediaItems; time elapsed: 00:00:29.6774798; MaxDegreeOfParallelism(InnerBlock) = 1 [2019-06-27 10:33:16,815] [61151843] [169 ] [INFO ] - PluginManager: Plugin 'GenreProvider' (id '367c772e-dfc5-4be1-b292-7fb6a2d08097') activated. [2019-06-27 10:33:17,905] [61152933] [162 ] [INFO ] - OCVVideoThumbnailer: Successfully created thumbnail for resource 'H:\TestSymLink\001 - Seven Samurai\Seven.Samurai.1954.redacted3.avi' [2019-06-27 10:33:17,982] [61153010] [169 ] [INFO ] - OCVVideoThumbnailer: Successfully created thumbnail for resource 'H:\TestSymLink\001 - Seven Samurai\Seven.Samurai.1954.redacted2.avi' [2019-06-27 10:33:17,995] [61153023] [139 ] [INFO ] - ImporterWorker: 43 % completed (1 ImportJob(s), in total 25 of 58 so far identified resources processed) [2019-06-27 10:33:17,997] [61153025] [139 ] [INFO ] - ImporterWorker: 86 % completed (1 ImportJob(s), in total 50 of 58 so far identified resources processed) [2019-06-27 10:33:17,997] [61153025] [97 ] [INFO ] - ImporterWorker.ImportJob(#1).MetadataExtractorBlock: Successfully processed 58 MediaItems; time elapsed: 00:00:31.8174594; MaxDegreeOfParallelism(InnerBlock) = 40 [2019-06-27 10:33:21,713] [61156741] [181 ] [INFO ] - Media item 96a17a34-fd46-48e6-abcd-831c9eae9a2d with name Seven Samurai (1956) reconciled (3897 ms) [2019-06-27 10:33:22,916] [61157944] [172 ] [INFO ] - ImporterWorker.ImportJob(#1).MediaItemSaveBlock: Successfully processed 3 MediaItems; time elapsed: 00:00:36.6281907; MaxDegreeOfParallelism(InnerBlock) = 1 [2019-06-27 10:33:22,916] [61157944] [84 ] [INFO ] - ImporterWorker.ImportJob(#1).RelationshipExtractorBlock: Successfully processed 3 MediaItems; time elapsed: 00:00:36.5203169; MaxDegreeOfParallelism(InnerBlock) = 40 [2019-06-27 10:33:22,918] [61157946] [84 ] [INFO ] - ImporterWorker.ImportJob(#1): Completed [2019-06-27 10:33:22,920] [61157948] [84 ] [INFO ] - ImporterWorker.ImportJob(#1): Disposed You may ask me why are there 58 media items in this folder. This is mostly how it is after tMM downloads metadata. There is an .actors folder, there are files like banner.jpg, clearart.jpg etc. Importantly, there is movie.nfo - the file I want MediaPortal to read. There are three parts to this particular version, so three .avi files in that folder. When I see it in the Movies tile in MP2, I see only one tile with the movie poster/synopsis etc. This is good, if it realizes that the other files are continuation. If it doesn't then, how can I let MP2 know that this particular movie is in three separate files? More importantly, two questions: why did it not hit that breakpoint? Why is it apparently failing to create the mediaitem sometimes in symbolic link folders? Thanks, Sridhar [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Submit: Bug Reports
Linked folders not importing
Contact us
RSS
Top
Bottom